Maximum Subarray Min Product Leetcode Javascript 30