Let $A = \begin{pmatrix} 1 & 1& 1\\ 1 & 2 &3 \\ 1 &4 & 5 \end{pmatrix}$ and $D = \begin{pmatrix} 2 & 0& 0\\ 0 & 3 &0 \\ 0 &0 & 5 \end{pmatrix}$.
It is found that right-multiplication by D multiplies each column of A by the corresponding diagonal entry of D, whereas left-multiplication by D multiplies each row of A by the corresponding diagonal entry of D.
Construct a 3 x 3 matrix B, not the identity matrix or zero matrix, such that $AB=BA$.