Leetcode Maximum Product Subarray Using Dp