Question d’entretien chez Lenovo

Backtracking and Greedy algorithm leetcode question.