LPL Financial interview question

Asked to reverse a string