Add ReverseDigits from the book