Rotated Sorted Array 2 Leetcode Solution 21