Leetcode Problems Two Sum Solution Javascript Map