AlphaSights interview question

Reverse a string.