SoFi Interview Question

Generate all permutations of a given integer array using backtracking