Not passing oe test case

correct condition is

if (a[0]<=a[1] and recurrSort(a+1,n-1)){

you forgot to add =

1 1 1 1 2 2 2
this is also sorted array

i hope this helps
if yes hit a like and don’t forgot to mark doubt as resolved :grinning:
if you have more doubts regarding this feel free to ask