let A and B be $\color{red}n \times n$ real (we don't need this assumption!) matrices such that sum of the entries in each row of A is 1 and sum of the entries in each row of B is 2.
let $x=\begin{bmatrix}1 & 1 & . & . & . & 1 \end{bmatrix}^T.$ then $Ax=x$ and $Bx=2x.$ thus $(AB)x=A(2x)=2Ax=2x.$