OpenAI coding question, reconstructed from 21 candidate reports (December 2025 to September 2026). Tests: time-based state (expiry, TTL, snapshots); hash-map counting, grouping and joins. Candidates reported 6 follow-ups. The write-up includes a Python solution that passes 8 test cases.