Wipro interview question

Write a code to reverse the number