Rosetta Problems

Prefix and Suffix

https://atcoder.jp/contests/abc322/tasks/abc322_b