KLA interview question

Reverse the string