Pergunta de entrevista da empresa National Instruments

How do you take the average of a binary tree?