Algorithm Linear Search And Binary Search Leetcode Solution Python