Binary Search - Leetcode 704 - Python