EPAM Systems interview question

Create a program to return the transpose of a matrix