Guidewire interview question

Create a method to reverse a string in linear time