Pregunta de entrevista de National Instruments

complexity of tree traversals..not very difficult