Apple interview question

How do you traverse a tree