This problem contains multiple test cases.
The first line contains an integer $T$ indicating the number of test cases.
For each test case, the first line contains one integer $n$ ($1 \leq n \leq 10 ^ 5$).
The next $n - 1$ lines each contains two integers $u$ and $v$ ($1 \leq u, v \leq n,u\neq v$), representing an edge (u, v).
It's guaranteed that $\sum{n} \leq 10 ^ 6$.