Wayfair interview question

Reverse a string