program to reverse a given number