Safe Security interview question

Design a rate limiter (hld)