Problem Statement: Here goes the brief description of the problem. Take your time in reading the complete problem statement here. An array of integers will be given along with the window size K. We need to calculate the average of all integers within that window and return maximum possible average. …