Domanda di colloquio di Neural Concept

backtracking problem from leet code