I need to prove the following:
Let $G$ be a group. Then it's simple if and only if there is only surjective homomorphism $G \to G'$ for $G' = \{ e \}$ or $G' \cong G$.
Not sure how to approach this problem. So far I only have proved that if $G$ is simple and a homomorphism is surjective, then so is $G'$, but I'm not sure this is relevant.
The question is not a duplicate, since it also asks how to prove ($G$ is simple, $\phi: G \to G'$ is a surjective homomorphism) $\Rightarrow$ ($G' = \{ e \}$ or $G' \cong G$).