LeetCode
Advantage Shuffle
Click
here
for an explanation.