Pregunta de entrevista de National Instruments

add up nodes in a binary tree and find average