ENH iSecure interview question

Write a code for reversing a number.