Domanda di colloquio di Thoughtworks

i was asked string manipulation