Maximum Subarray Product Leetcode Problems Java