Implement a leaky-bucket rate limiter | Box Interview Question