Implement a sliding-window rate limiter | Reddit Interview Question