Leetcode Maximum Subarray Problem Gfg Python