Top Matrix based coding interview questions Given an n x n 2D matrix rotate it by 90 degrees (clockwise) in C++ in place Given a matrix of m x n elements , print all elements of the matrix in spiral order in CPP Given a positive integer n, generate a square matrix filled with elements from 1 to n^2 in spiral order in C++