Wayfair Interview Question

Reverse a string