K Inverse Pairs Array - LeetCode

Can you solve this problem? 🤔