// NOTE: This code logic is only for square matix. For another type matrices with different number of rows and column, create another suitable logic by doing parallely dry run while writing suitable ...
You are given a square matrix of size n x n. Your task is to find the transpose of the given matrix. The transpose of a matrix is obtained by converting all the rows to columns and all the columns to ...