Maximum Subarray Min Product Leetcode Problems Javascript W3schools