string s =
if (s == "SSSEERRTADEEE")
s = "S3E2R2T1A1D1E3";
It should give you the following idea: if you provided some example of data on input and output, it does not mean you formulated the problem.
The question does not really make any sense.
Good luck,
—SA