Question d’entretien chez Pocket Gems

write psuedocode/code to reverse string.