Maximum Product Subarray Leetcode Solution Python