Rosetta Problems

前后缀字符串

https://www.acwing.com/problem/content/4186