Quest Global interview question

Program to reverse a number