Globant interview question

Write a code on transpose of matrix