Leetcode Maximum Product Subarray Geeksforgeeks Java