LeetCode
Two Sum
Click
here
for an explanation.