PayPal interview question

Algorithm to reverse a string