Implement a rate-limiter class that can be used to protect an API endpoint from abuse at Twitch.
Use a sliding-window policy independently for each client. Given requests in nondecreasing timestamp order, return whether each request is allowed. A request is allowed when fewer than limit requests from that client occurred within the previous window seconds, excluding expired timestamps at timestamp - window.
Input requests contain [client_id, timestamp]; output is a Boolean list.
def rate_limiter(requests, limit, window):