\begin{bmatrix} & 1 0 1& \\ & 010& \\ &110 & \end{bmatrix}
Matrix contain 3rows like as 1,2,3 and 3 columns like as 1,2,3
Set A={1,2,3}
From matrix the relation can be formed
A={(1,1),(1,3),(2,2),(3,1),(3,2)}
transitive closure={(1,1),(1,3),(1,2),(2,2),(3,1),(3,2),(3,3)}
Represent into matrix form
=$\begin{bmatrix} & 1 1 1& \\ &0 1 0 & \\ &1 1 1 & \end{bmatrix}$
Hence 1 is right answer