Write a function and a program that takes an integer valueand returns the number with its digits reversed. For example, fiventhe number 7631, the function should return 1367.