Indeed interview question

Reverse a string.