Leetcode Maximum Product Subarray Geeksforgeeks Javascript Programming