Q. Total number of possible matrices of order with each entry or is

 1872  282 Matrices Report Error

Solution:

Required number of matrices