Pregunta de entrevista de Pocket Gems

write psuedocode/code to reverse string.