Question d’entretien chez Guidewire

Reverse a String and explain your thought process