Pocket Gems interview question

write psuedocode/code to reverse string.