in problem string find stre particular property the problem author reluctant waste time thinking string call good a string good do not palindrome substring long equal d you give string s consist lowercase english letter find good string t length s consist lowercase English letter lexicographically large s of string string t lexicographically minimumWe nonempty string sabsasa1 sb 1abs substre string ss1s2 ssa nonempty string ss1s2 sn call palindrome 1 n follow fulfill sisni1 in word palindrome read directionsstre xx1x2 xx lexicographically large string yy1y2 yy xy x1y1x2y2 xyyy exist number r rxry x1y1x2y2 xryr xr1yr1 Characters string compare like ascii code