KCB Bank interview question

Reverse a string in java