Leetcode Maximum Product Subarray Geeksforgeeks Python