Bloomberg Interview Question

Create a tree iteration