Add Two Sum Leetcode Javascript Question