// then out of all the solved substrings,concantenate them in such a way,to get the lexico largest for the current string ...