Count Reverse Pairs Leetcode