LeetCode
Missing Number
Click
here
for an explanation.