Bloomberg Interview Question

How to traverse a binary tree