Vertoz interview question

Reverse a number in java