As you can see this is 2D transpose of matrix program, when executing this program it throws an index out of bound exception when it reached in some lines of code. Code raising