Arista Networks Interview Question

Print nodes in a unbalanced tree in BFS order