Domanda di colloquio di Apple

Implement an algorithm to recursively travel a tree