Walmart interview question

Reverse a string