Pergunta de entrevista da empresa Apple

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