Proptiger interview question

Reverse a string