Microsoft interview question

How can you traverse a tree?