Pregunta de entrevista de National Instruments

Find average of a binary tree.