This problem is used in private contest:树和二叉树