Pergunta de entrevista da empresa Flexport

It was a generic tree traversal programming question