Frage im Vorstellungsgespräch bei Wipro

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