Thoughtworks Interview Question

i was asked string manipulation