Reverse Pairs Count

Given an integer array arg1, return the number of reverse pairs in the array.

A reverse pair is a pair of indices (i, j) such that:

  • 0 <= i < j < arg1.length
  • arg1[i] > 2 * arg1[j]
Examples
Input: [1,2,3]
Output: 0
Hints

Reverse Pairs Count

Given an integer array `arg1`, return the number of **reverse pairs** in the array.