the solution of MaximumDepthofBinaryTree