Demonware interview question

Traverse a given tree