Design and implement a rate limiter. In the most concrete variant: given an array where each index corresponds to a request ID and each value is the timestamp when the request arrived, return the timestamps of dropped requests given two simultaneous rules: (1) max 3 requests per second,…