Two Sum Leetcode Problem In Python