Pregunta de entrevista de Nalashaa Solutions

A coding question that was based on DFS.