LeetCode
Array Partition I
Click
here
for an explanation.