神一般的解答

Find the cut point, s1 = xy then s2 = yx. s2 is always the substring of
xyxy which is equal s1s1.