Pergunta de entrevista da empresa National Instruments

Find the average value in a binary tree on ints.