Wingman interview question

Design rate limiter with limiting based upon QPS(queries per second).