Rosetta Problems

Rotation Sort

https://atcoder.jp/contests/agc032/tasks/agc032_d