Your question is Design API Rate Limiter. 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).
Design an API rate limiter.
Clarify the API clients, rate-limit policy, deployment topology, consistency requirements, and failure behavior. Explain how you would build the core limiter, optionally augment it with ML for adaptive abuse detection, and evaluate, monitor, and operate it at scale.