$\pi_1(Y,y_0)\neq\{1\}$ for some $(Y,y_0)\implies\pi_1(S^1,1)\neq\{1\}$
Hint: Otherwise $1_S$ is nullhomotopic, where $1_S$ is the identity map on $S^1,$ and this implies that $f=f\circ1_S$ is nullhomotopic for every closed path $f$ in $Y$ at $y_0.$
I do not understand the hint.
I assumed it comes from a proof by contradiction, thus we assume $\pi_1(S^1,1)=\{1\}$.
But this does not imply $1_S$ to be nullhomotopic because having the trivial fundamental group does not imply the space $X$ to be contractible (which is equivalent to $1_X$ to be nullhomotopic.)
Then, how is that all that implies $f=f\circ1_S$ is nullhomotopic for every closed path $f$ ?
Thank you