Maximum Subarray Product Leetcode Python