Eventtus interview question

It was about a string manipulation problem