Wipro Interview Question

Write a code to reverse the number