Atlassian interview question

Design a rate limiter