Domanda di colloquio di National Instruments

Write code to get the average value from a tree.