I needed to print a spiral twisted clockwise matrix of size n x n. It was for an exam. The code which I wrote runs perfectly and even prints the matrix but it wasn\'t accept