Leetcode Array Two Sum Problem In Javascript Object Notation