solved Maximum Product Subarray