Java Program – to find the transpose of a matrix.

Output: