Leetcode 53 Maximum Subarray Python Solution (Kedanes Algorithm)