Need solution or editorial of Bye, inversions!.

Please, can anyone provide editorial or solution of problem Bye, inversions!

[Editorial BY Anudeep ][1]Kharagpur Online Round 2014 - Google Docs

3 Likes