Reverse a number