Check wheather array is sorted or not

why my second test case is not passing in the above code

@sourabhsingh282
hello sourabh,
pls save ur code at https://ide.codingblocks.com/ and share the generated link