TCS Interview Question

Java string reverse program was asked