This problem is in Contest(s) below:
Contest 6031:潘伊诺字符串