Snowflake phone-screen question, reconstructed from 15 candidate reports (March 2025 to August 2026). Tests: topological sort and dependency graphs; stateful class design. Candidates reported 10 follow-ups. The write-up includes a Python solution that passes 9 test cases.