ION Group interview question

Find Reverse Pairs - LeetCode