Maximum Product Subarray Leetcode Solution 1