Code a rate limiter in any language.
Implement rate_limiter(requests, limit, window), processing requests in nondecreasing timestamp order. Each request is [key, timestamp]; return a Boolean for each request, accepting it only when that key has fewer than limit accepted requests in the inclusive interval [timestamp - window, timestamp].
def rate_limiter(requests, limit, window):