Two Sum Javascript Leetcode Solution