Pergunta de entrevista da empresa Commonwealth Bank of Australia

Write a rate limiting function.