eTranzact interview question

Reversing a string in java