Pair Sum Problem In Leetcode Python