svalakFollowJun 6, 2021·1 min readAlgorithm/DS Problem #5: Rotate matrix by 90° anti-clockwiseGiven a square matrix(n * n), you need to turn it 90 degrees in anti-clockwise direction without taking any extra space.Input: 3 x 3 matrix1 2 34 5 67 8 9Output:3 6 92 5 81 4 7