Leetcode Array Two Sum Problem In Leetcode Javascript