Intuit interview question

Implement rate limiter: public boolean rateLimit(String key, int intervalInSecs, int maxLimit)