This problem is in Contest(s) below:
Contest 1019:自定义字符串类