Pregunta de entrevista de SoFi

Generate all permutations of a given integer array using backtracking