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