Pergunta de entrevista da empresa MongoDB

Design a rate limiter and code it up.