Problem 4044 · Medium
Slide a half-length window around the ring; each shift is good when the window holds more than the rest.
Open the interactive visualisation