Maximum Average Subarray I Leetcode Solutions Extensions