Monk and Inversions

Problem Name:
Monk and Inversions
Site:HackerEarth
Links:
Tags:
Problem setters: