Check the code what is the mistake ?
One test case failed
@saiyamgoyal1903 array is called sorted when it is non decreasing means getting equal to is also valid but your code is giving false for this case. update your code for this it will work fine.