Pregunta de entrevista de National Instruments

Compute the average value of a binary tree.