Thales Interview Question

The first problem: Reverse a string.