Pergunta de entrevista da empresa National Instruments

Binary tree average without recursion