Pregunta de entrevista de National Instruments

Average a binary tree