Domanda di colloquio di Samsung Electronics

Something to do with backtracking and optimization