Question d’entretien chez Bloomberg

String manipulation problem in any language