Pergunta de entrevista da empresa National Instruments

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