MapmyIndia interview question

write a code to reverse a number