Bloomberg Interview Question

One was a breadth first search question