Write a program to calculate the transpose of a hardcoded 2D array.
MediumProblem Statement
Write a program to calculate the transpose of a hardcoded 2D array.
Sample Input
Matrix: [ [1, 2, 3], [4, 5, 6], [7, 8, 9] ]
Sample Output
Transposed Matrix: 1 4 7 2 5 8 3 6 9
Limits
Time: 2s · Memory: 256 MB