I'll assume $\Bbb N = \{1, 2, 3, \ldots\}$, that is, that $\Bbb N$ starts with $1$ and not $0$; everything is easily modified if your $\Bbb N$ starts with $0$.
The key here is to identify what is forced to happen for any $g : \Bbb N \to \Bbb N$ such that $g \circ f = \operatorname{id}_\Bbb N$, and what leeway such a function $g$ has.
Picking $n = 5$ as an arbitrary example, then because $g$ is a left-inverse of $f$, we know that
$$5 = (g \circ f)(5) = g(f(5)) = g(6)$$
and so $g(6)$ cannot be anything but $5$: because $6$ is in the image of $f$, the value of $g(6)$ is completely determined.
More generally,
$g$ is forced to take particular values on all of $\operatorname{im}(f) = \{2, 3, 4, \ldots\}$. Consequently,
we are free to define the value of $g$ on $\Bbb N \setminus \operatorname{im}(f) = \{1\}$ in any way we'd like.
This is where our leeway is to be found.