Anthropic phone-screen question, reconstructed from 11 candidate reports (February 2025 to July 2026). Tests: reading code: debugging, refactoring, review; parsing structured text. Candidates reported 3 follow-ups. The write-up includes a Python solution that passes 6 test cases.