Pergunta de entrevista da empresa Atlassian

I was getting one code challenge in which I was being given one task in order to design one custom rate limiter. In this given task I was told that I can not use any out of the shelf solution. Because of that the code for the rate limiter had to be designed and also had to be written from scratch.