Pergunta de entrevista da empresa Magazino

The online question was about searching a substring in a tree.