Rosetta Problems

Smoothing by Swaps

https://atcoder.jp/contests/masters-qual/tasks/masters_qual_a