Question d’entretien chez Amazon

Write a code to traverse a tree without recursion.