Two Sum Problem In Leetcode Javascript Question