Pinterest interview question

Design a rate limiter: system design