the predefined function parameter is an int, not an int array, while the testcases passed is int array.