Maximum Average Subarray Ii Leetcode Problems Javascript