Bloomberg interview question

How to traverse a binary tree