FACE Prep interview question

To write a program that prints transpose of a matrix.