Morgan Stanley Interview Question

Reverse a string