Leetcode Two Sum Problem In Javascript Object To Array Php W3schools