Pregunta de entrevista de Guidewire

Reverse a String and explain your thought process