Parspec interview question

How to build a rate limiter.