Completely Searching for Inversions

Problem Name:
Completely Searching for Inversions
Site:CodeForces
Links:
Tags:
Problem setters: