Rosetta Problems

Nearly Cyclic String

https://onlinejudge.u-aizu.ac.jp/problems/2711