Anthropic phone-screen question, reconstructed from 3 candidate reports (August 2025 to December 2025). Tests: time-based state (expiry, TTL, snapshots); sliding window, two pointers, string matching. Candidates reported 4 follow-ups. The write-up includes a Python solution that passes 7 test cases.