Often you want to find the largest window that satisfies a condition.
To do this, you start out with some window:
Next, you shrink the window from the left until it's valid:
Then you grow it from the right:
You simply repeat these two steps, and this lets you find the biggest possible window.
You'll get practice with this in the next few problems.