Linear Search Leetcode Practice Python