Question d’entretien chez Wipro

Explain how would code transpose of a matrix using a programming language.