Software AG interview question

write a program to traverse a binary tree without recursion