solve reverse_integer