Primathon interview question

Code a program to get the Transpose of a matrix