Question d’entretien chez Apple

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