Pregunta de entrevista de MongoDB

Design a rate limiter and code it up.