$A=\begin{pmatrix}1 & 2 & 1 & 0 & 0 \\ 1 & 2 & 2 & 2 & 3 \\ -1 & -2 & 0 & 2 & 3\end{pmatrix}$
Given size of matrix is $3\times 4$ so rank should be $\rho\leq3$
Perform $R_2\rightarrow R_2-R_1,R_3\rightarrow R_3+R_1$ we get:
$A=\begin{pmatrix}1 & 2 & 1 & 0 & 0 \\ 0 & 0 & 1 & 2 & 3 \\ 0 & 0 & 1 & 2 & 3\end{pmatrix}$
Perform $R_3\rightarrow R_3-R_2$;
$A=\begin{pmatrix}1 & 2 & 1 & 0 & 0 \\ 0 & 0 & 1 & 2 & 3 \\ 0 & 0 & 0 & 0 & 0\end{pmatrix}$
here $R_3$ is completly zero so $\rho(A)\leq 2$
$\therefore \rho(A)=2$