Binary Search Question Leetcode Sql Solutions