Altimetrik interview question

Coding round had basic string manipulation lete code type questions