Recruit CRM interview question

Q - String reversal using java