https://github.com/hhfgeg/myCodes/blob/master/codes/printMidTree.cpp
第二题