Infosys Interview Question

Coding exam: about string manipulation