PayPal Interview Question

Algorithm to reverse a string