Leetcode Problems Two Sum Solution Javascript Array Push At Index