Pregunta de entrevista de Blackbaud

How would you flip a string?