FDM Group interview question

Write a java program to reverse a string.