1st test case is not passing

my 1 test case is not passing. find tell me why my code is not running properly

you have not write base case
if given array is sorted then your code will give segmentation fault
Modified Code