Pergunta de entrevista da empresa Sohu.com

Print the node in a tree using iterative method