Sohu.com interview question

Print the node in a tree using iterative method