Broadridge interview question

reverse a number code in java