write Reverse Integer