Question d’entretien chez National Instruments

find average of binary tree, write out exact code