Guidewire interview question

Reverse a String and explain your thought process