Leetcode Array Two Sum Problem In Javascript The Xy