Solve InorderTraversalNoStack.