Maximum Subarray Min Product Leetcode Python