Maximum Average Subarray Leetcode Solution Python