Snowflake phone-screen question, reconstructed from 1 candidate report (May 2025). The write-up includes a Python solution that passes 9 test cases.