Two Sum Leetcode Solution Geeksforgeeks Javascript Functions W3schools