Your question is Rate Limiter System Design. Take a moment with it on the right.
Talk me through your thinking if you like. When you're confident, submit your answer and I'll grade it like a real screen (7/10 or better passes).
Implement a rate limiter.
Asked in the Technical Phone Screen stage. This is a classic rate limiter problem. Reported follow-up: How would you implement it using multi-threading?
Explain the algorithm, its state, concurrency behavior, and complexity. Discuss how you would test correctness under concurrent requests and how the design would change if limits had to be enforced across multiple processes or machines.