IBM interview question

print a binary tree without recursion