Snowflake phone-screen question, reconstructed from 6 candidate reports (April 2025 to August 2026). Tests: heaps, top-k and greedy scheduling; hash-map counting, grouping and joins; stateful class design. Candidates reported 4 follow-ups. The write-up includes a Python solution that passes 10 test cases.