Three Sum Problem Leetcode Javascript