LPL Financial Interview Question

Asked to reverse a string