Pregunta de entrevista de National Instruments

2. Given a binary tree find the avg of numbers in the tree - both recursive/iterative approaches. Write code.