Pergunta de entrevista da empresa AND Digital

Recursion based question and backtracking traversing