LeetCode
Find the Duplicate Number
Click
here
for an explanation.