Cognizant interview question

a program to reverse a number