Problem Solving Using Binary Search Leetcode Solution