Compute the products AB and BA whichever exists in the case : A = [[1, -2], [2, 3]] and B = [[1, 2, 3], [2, 3, 1]]