Your question is API Gateway with Sliding Window. 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 gateway and write the logic for a sliding window approach
Asked in the Round 2 stage. Explain the gateway request path, define the rate-limiting state and semantics, and write pseudocode or production-quality logic for a sliding-window limiter. Discuss how the design behaves with concurrent requests and multiple gateway instances. Cover storage, cleanup, failure handling, observability, and testing. Clarify assumptions about the identity being limited, the window definition, allowed request count, and whether rejected requests should consume quota.