Pergunta de entrevista da empresa National Instruments

Find average of a binary tree.