Maximum Subarray Min Product Leetcode Javascript Questions W3schools