Thales interview question

The first problem: Reverse a string.