Two Sum Javascript Leetcode Solution 9