Ramp Interview Question

The question was to design a rate limiter.