ENH iSecure Interview Question

Write a code for reversing a number.