Veeva Systems interview question

string manipulation question LC easy/medium