ByteDance Interview Question

Reverse pairs on LeetCode (difficulty: hard)