educative.io

Design Api Reate Limiter Optimal Algorithm

Can someone explain how come the counters with sliding window prevents the very first case where we can have the user send 3 requests right at the end of the second and then 3 more right at the start of the next second ?