Two Sum Leetcode Problem In Python For All Selected Lines