\begin{align*} g: \mathbb{N} & \to \mathbb{Z} \\ g(n) &= \begin{cases} \frac{n+1}{2} & n \textrm{ is odd.}\\ -\frac{n}{2} & n \textrm{ is even.} \end{cases} \end{align*}
Since $0\notin \mathbb{N}$, I think this function is not surjective. How are you supposed to prove this? Pick a generic element $x$ of natural numbers and somehow show that it can never produce $g(n)=0$?
Thanks.
I think that your idea is right, just observe that since
$g(n)=0\in \mathbb{Z}$ is not reached.