Pergunta de entrevista da empresa Blackbaud

How would you flip a string?