Given an integer array nums and an integer k, find the contiguous subarray of length exactly k with the maximum average, and return that average.
Input
numskOutput: the maximum average, printed with two decimal places (the template formats it for you).
1 12 -5 -6 50 3 4
12.75
(12 - 5 - 6 + 50) / 4 = 12.75.
5 1
5.00
Run your code against the sample tests, or Submit to run the full suite.