Shifted Binary Search Leetcode Problem