Amazon interview question

How would you traverse a tree without recursion(inorder and post-order)