Pregunta de entrevista de Flexport

It was a generic tree traversal programming question