Pergunta de entrevista da empresa M2M Services

Recursion with backtrack on different structures