Three Sum Problem Leetcode Solution Python