Salesforce Interview Question

Write a function that will print the nodes of a tree in level order.