From Rotman's Algebraic Topology
If $0 \rightarrow (S_*', \partial') \rightarrow ^i (S_*, \partial)^p \rightarrow (S''_*, \partial'') \rightarrow 0$ is a short exact sequence of complexes, then for each $n$ there is a homomorphism $d_n : H_n(S_*'') \rightarrow H_{n-1}(S_*')$ given by $\text{cls } z_n'' \mapsto \text{ cls } i^{-1}_{n-1} \partial_n p_n^{-1} z_n''$
And the proof is as follows:
Suppose that $z_n'' \in Z_n''$ so $\partial''z'' = 0.$ Since $p$ is surjective, we may lift $z''$ to $s_n \in S_n$ and then push down to $\partial s_n \in S_{n-1}.$ By commutativity, $\partial s_n \in \text{ker}(S_{n-1} \rightarrow S_{n-1}'') = \text{im } i$. It follows that $i^{-1} \partial s_n$ makes sense; that is, there is a unique $s'_{n-1} \in S'_{n-1}$ with $is_{n-1}' = \partial s_n$. Suppose we had lifted $z''$ to $\sigma_n \in S_n$. Then the construction above yields $\sigma'_{n-1} \in S'_{n-1}.$
We also know that $s_n - \sigma_n \in \text{ker } p = \text{im}(S'_n \rightarrow S_n)$, so there is $x'_n \in S'_n$ with $s'_{n-1} - \sigma'_{n-1} = \partial' x'_{n} \in B'_{n-1}$. There is thus a well defined homomorphsim $Z''_n \rightarrow S'_{n-1}/B_{n-1}'$. It is easy to see that this map sends $B''_n$ into $0$ and that $s'_{n-1} = i^{-1}\partial p^{-1}z''$ is a cycle. Therefore the formula does give a map $H_n(S''_*) \rightarrow H_{n-1}(S_*')$, as desired.
Question 1: I don't understand what the author is doing in the first line of the proof with $p$. The function $p: S_n \rightarrow S_n'$ is surjective which just implies all inverse image sets are nonempty. Then what does he mean when he says "we may lift $z''$ to $s_n \in S_n$"? Since the definition of $p^{-1}(z'') = \{s_n \in S_n :p(s_n) = z'' \}$, how can he just choose an arbitrary element of $p^{-1}(z'')$ and say that that's the inverse? He, in the next few lines of the same paragraph, then does the same with when he supposes that $p^{-1}(z'') = \sigma_n$. Is he using a different definition for $p^{-1}$ than the inverse image?
Question 2: Supposing the above question is answered, how does the map send $B_n''$ into $0$ and how is $s_{n-1}' = i^{-1} \partial p^{-1} z''$ a cycle?
Lifting $z''$ to $S_n$ means choosing some $s_n \in S_n$ so that $p(s_n) = z''$, this cannot be done canonically since in general there are many choices of $s_n$ for each $z''$ but it all becomes well defined in homology.
As for your second question we know that $i(s'_{n-1}) = \partial s_n$ (since $p^{-1}z'' = s_n$) so $\partial i(s'_{n-1}) = \partial \partial s_n = 0$ but $i$ is a chain map so commutes with boundary operators, $i(\partial s'_{n-1}) = 0$ aswell which means that $\partial s'_{n-1} = 0$ since $i$ has zero kernel (is injective).
Hope this answered your question! The notation $p^{-1}z''$ is super confusing and is not widely used, so don't worry about trying to make sense of it, just know that $p^{-1}z'' = s_n$ iff $p(s_n) = z''$.