结果为f(root)。
递推公式:f(father)=max(
min(f(leftSon), f(rightSon))+2,
max(f(leftSon), f(rightSon))+1)