KCB Bank Interview Question

Reverse a string in java