Theatro interview question

java program to reverse a string