Design a rate limiter | Oracle Interview Question