How many $3 \times 3$ matrices $M$ with entries from $\{ 0,1,2 \}$ are there, for which the sum of the diagonal entries of $M ^ { T } M$ is 5 ? [A] 126 [B] 198 [C] 162 [D] 135
How many $3 \times 3$ matrices $M$ with entries from $\{ 0,1,2 \}$ are there, for which the sum of the diagonal entries of $M ^ { T } M$ is 5 ?
[A] 126
[B] 198
[C] 162
[D] 135