in reply to Object of objects, Binary tree,

Start by looking up the definition of breadth first search. It should be obvious at that point.