Rosetta Problems

Prefix and Suffix

https://atcoder.jp/contests/agc006/tasks/agc006_a