Snap Interview Question

Design a rate limiter for a system API.