Also reported as Sliding Window Rate Limiter · Logger with Rate Limiting
Microsoft coding question, reconstructed from 5 candidate reports (January 2026 to April 2026). Candidates reported 2 follow-ups. The write-up includes a Python solution that passes 5 test cases.