This exercise is best understood as a special case of the following trivial observation, which also explains how to come up with these rather exotic (ring) operations (which are, of course, useless, and this "exercise" is just an end in itsself).
Let $R$ be a ring with underlying set $|R|$. If there is a bijection $f : X \to |R|$ from a set $X$, then there is a unique ring $S$ with $|S|=X$ such that $f$ becomes an isomorphism of rings. Namely, one has $0_S = f^{-1}(0_R)$ and $s+t = f^{-1}(f(s)+f(t))$, the same with the multiplicative structure. In fact, the same works for arbitrary algebraic structures. Since $f$ is an isomorphism, every axiom or property of $R$ is inherited to $S$. For example, if $R$ is an integral domain, the same is true for $S$.
Now, take the bijection $\mathbb{Z} \to \mathbb{Z}$, $a \mapsto a-1$. The induced addition is $a+'b=(a-1)+(b-1)+1=a+b-1$, the zero is $1$, the multiplication is $a*'b = (a-1)*(b-1)+1=a*b-a-b+2$, the unit is $2$.
Thus, this ring is nothing else than the usual ring $\mathbb{Z}$, but with a different notation for its elements.