This is a qual question and I have no idea how to begin. Help is much appreciated.
Let $X$ and $Y$ be path connected spaces, and let $f : X \rightarrow Y$ be a continuous map. The mapping cone $Cf$ of $f$ is defined to be the quotient space of $Y \coprod (X \times [0, 1])$ obtained by identifying each point $(x,0), x \in X,$ with the point $f(x) \in Y,$ and identifying all points $(x,1)$ to a single point . If $\pi_1(Cf)$ is trivial, is it necessarily true that the map on $\pi_1$ induced by f is onto? Prove or give a counterexample.