ESOP Direct interview question

Write a Java programm to reverse the string