LeetCode
Find All Duplicates in an Array
Click
here
for an explanation.