PATTERN / SLIDING WINDOW
The window is not the hard part.
This week’s signal: a contiguous range plus a constraint you can maintain. The trap is moving both pointers without stating the invariant.
Before you code, finish this sentence: “My window is valid while…”