Capital One interview question

Reverse a string