Snowflake phone-screen question, reconstructed from 9 candidate reports (February 2025 to August 2026). Tests: DFS and connected components; tree recursion and traversal. Candidates reported 3 follow-ups. The write-up includes a Python solution that passes 7 test cases.