LeetCode
Permutations II
Click
here
for an explanation.