How can duplicate permutations be avoided when backtracking over… | Recursion and Backtracking question · AnyPrep