Leetcode Array Two Sum Problem In Javascript What Is The Difference