This exercise is from Kosniowski's Algebraic Topology, page 137, exercise 15.11, d.
Show that two continuous maps $\varphi, \psi :X \rightarrow Y$ with $\varphi(x_0) = \psi (x_0)$ for some $x_0 \in X$ induce the same homomorphism from $\pi(X,x_0)$ to $\pi(Y, \varphi(x_0))$ if $\varphi$ and $\psi$ are homotopic relative to $x_0$.
We need to show that, given the equivalence class of a loop with base $x_0$, $[g]\in \pi(X,x_0)$, then $[\varphi \circ g ] = [\psi \circ g ]$.
The fact that $\varphi(x_0) = \psi (x_0)$ means that $[\varphi \circ g]$ and $[\psi \circ g]$ are both equivalence classes of loops in $Y$ with base point $\varphi(x_0)$. But I don't see how the fact that $\varphi$ is homotopic to $\psi$ implies that $[\varphi \circ g]=[\psi \circ g]$.