One of the test case not passing

Correct line no 10 of your code as,
if(a[0]<=a[1] && isSorted(a+1,n-1)){
and then try to submit the code…