Blackbaud Interview Question

How would you flip a string?