Zomato interview question

Designing and optimizing a rate limiter