Rosetta Problems

Rotation Matching

https://atcoder.jp/contests/abc165/tasks/abc165_e