Let $f\in\text{Hom}(M,N)$ be in the kernel of $\overline{u}$. Therefore, for all $m'\in M'$, $(f\circ u)(m')=0$. Let $m_1,m_2\in M$ be such that $m_1-m_2\in M'$. Then $f(m_1-m_2)=0$, so $f(m_1)=f(m_2)$. Therefore, $f$ is constant on quotients $M/M'\simeq M''$.
Therefore, we can define a lift $\widetilde{f}\in\text{Hom}(M'',N)$ as follows. Let $m''\in M''$. Let $m$ be any preimage of $m''$ in $M$ (which exists because $v$ is surjective). Then define $\widetilde{f}(m'')=f(m)$. This is well-defined because any other preimage differs by an element of $M'$.
You should check that $\widetilde{f}$ is a homomorphism, but that is straight-forward. Also, it is easy to see that $\widetilde{f}\circ v=f$.
In general, the hard part of these types of proofs is constructing the correct object (which is usually done by defining it in the only way possible).