To check an array is sorted or not using recursion

I am not getting the mistake in my code if i am doing from the last end sir has taught from left end but when i am passing array from right end i am getting the wrong answer

link -> https://ide.codingblocks.com/s/58475

If your original array has N elements
and after one recursion array should contain N-1 elements
but arr+(n-2) as
A=(1,2,3,4,5) n=5
after recusion A=(4,5) and n=4
as you are sending new array from index(arr+(n-2)= 0+(5-2) th index to last of array=3th index to 4th index )

there is no need for +(n-2) with arr in recursive function call.