Binary Search Algorithm Leetcode Contest