Fixed window — instead of re-summing from scratch each time, slide: add incoming element, subtract outgoing.
This reduces the naïve O(nk) approach to O(n).
Max sum ÷ k = max avg (dividing by a constant k preserves order).