Check if Array Is Sorted and Rotated

Solution Code
Verifying access...

Time Complexity

O(n^2)

Space Complexity

O(1)