Domanda di colloquio di Apple

Solving a binary tree question. A distributed nodes, counting problem.