give 2D integer array matrix return transpose matrixThe transpose matrix matrix flip main diagonal switching matrixs row column index example 1input matrix 123456789output 147258369example 2input matrix 123456output 142536 Constraintsm matrixlengthn matrixilength1 m n 10001 m n 105109 matrixij 109