Atlassian interview question

Design and code Rate limit algorithm