Rosetta Problems

Inversions query

https://marisaoj.com/problem/262