Pregunta de entrevista de National Instruments

get the average value of a binary tree