Pergunta de entrevista da empresa Tessell

A question based on Trees and String