LeetCode
Reverse Pairs
Click
here
for an explanation.