Rosetta Problems

Swap to Gather

https://atcoder.jp/contests/abc393/tasks/abc393_d