Demonware interview question

In whiteboards, write code to traverse a binary tree