Reverse the digits of decimal number