You're working at a data center that tracks server load throughout the day. You need to identify the "peak hours" - the period of consecutive hours with the highest average load.
For loads [1,2,3,4,5,2,1,2,5,5,4,3] (first 12 hours shown) and K=3:
Complete the solve method that finds the start hour of the peak period. Remember to handle wrapping around midnight!
Hours 8-10 (5,5,4) have the highest average of 4.67
Hours 5-8 (2,3,3,2) have the highest average of 2.5
Hours 22-23 wrap around to next day, [2,3] has highest average