Calsoft Interview Question

write a program to reverse a number