Rosetta Problems

Corridor of Adjacent Swaps

https://atcoder.jp/contests/awc0145/tasks/awc0145_d