Rise interview question

how would you implement a rate limiter.