Amazon interview question

Leet code questions - reverse a string