Amazon Interview Question

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