Sorted array - recursion and backtracking

please tell what is wrong with this code, it fails on the 2nd test case!!

Change line 8 to if(a[0]<=a[1] && isSorted(a+1, n-1)) and then check.

Thank you so much, it helped a lot.