In recusrion how isSorted (arr, s+1) is working

i’m confused about what the recursive call will do after executing the boolean restAns = isSorted(arr,s++).
what recursion is doing