Question d’entretien chez National Instruments

Find the average value in a binary tree on ints.