Leetcode Maximum Product Subarray Solution