Persistent Systems interview question

Revers a string using Java, JAVA OOP basic questions