Minimize Inversions

Problem Name:
Minimize Inversions
Site:CodeForces
Links:
Tags:
Problem setters: