Uber interview question

Coding challenge: write a rate limiter in Java.