Two Sum Leetcode Javascript Solution