LeetCode
Array of Doubled Pairs
Click
here
for an explanation.