Find the transpose of the matrix