Pregunta de entrevista de IXL Learning

Some dfs & backtracking problem and analyze complexity.