Print the Chart, Count the Teams: Walking a Tree in the Right Order

Show one org chart three ways (printed with each team indented, with each manager's head count, and one level at a time) by visiting every person in the order each job needs: the four traversals, and which job each one is for.

Updated

Cheat sheet: Print the Chart, Count the Teams: Walking a Tree in the Right Order
Category
Data Structures
Level
Journeyman
Tags
data structures, In-Order Traversal, Level-Order Traversal, Post-Order Traversal, Pre-Order Traversal, Tree Traversal