Testcase 2 is giving wrong answer

code https://ide.codingblocks.com/s/52623

https://online.codingblocks.com/player/11536/content/4731

problem link https://hack.codingblocks.com/contests/c/241/86

Hey, there is a small mistake in your code, just update line:10 of your code like this
if(arr[0]<=arr[1] && isSorted(arr+1,N-1))

thank you…