Cognizant interview question

Java coding question on string reversal