Question d’entretien chez Tripadvisor

Question was about manipulating a string, fairly straightforward stuff.