printMatrixInDiagonalOrder