Counting inversions

Problem Name:
Counting inversions
Site:Spoj
Links:
Tags:
Problem setters: