Unifytech interview question

coding questions on java. Related to strings to reverse it