Deloitte interview question

do string reversal in java? and swapping numbers