Upper Bound Binary Search Leetcode Problems