Domanda di colloquio di Blue Flame Labs

Backtracking coding question to solve.