maxDepth(u) - minDepth(u)
第一行一个整数 n (1 ≤ n ≤ 10⁵) 接下来 n 行,第 i 行两个整数 l[i], r[i],表示节点 i 的左右儿子(0 表示空)
7 2 3 4 5 6 7 0 0 0 0 0 0 0 0
0