C Program to Reverse a Number using Function