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