add solution to print diagonals of a matrix