Pergunta de entrevista da empresa National Instruments

Find the average of all the nodes in a binary tree