Bloomberg Interview Question

Traverse through a binary tree