LeetCode
Find the Derangement of An Array
Click
here
for an explanation.