Implement a rule-based rate limiter | Cloudflare Interview Question