Leetcode Sorted And Rotated Array Problem