Question d’entretien chez ByteDance

algo question that uses backtracking.