Audible interview question

How do you implement rate limiter for an api?