rowSwap takes three arguments : a matrix A and two integers n1 and n2. rowSwap returns the matrix obtained by exchanging in A, the row of index n1 with the row of index n2. Input :
Output :