Maximum Subarray Min Product Leetcode Solutions Java