Pergunta de entrevista da empresa Google DeepMind

Coding question: Simple tree base problem with tree transversal