Clari interview question

1. Implement a function to rate limit api calls.