Nokia interview question

How to reverse a int?