Maximum Subarray - Amazon Coding Interview Question - Leetcode 53 - Python