Difficulty: MEDIUM
Categories: κ·Έλν (BFS/DFS)μ λμ¨νμΈλ/MST
Source: https://leetcode.com/problems/graph-valid-tree/