Intercom interview question

Reverse a string