Definition: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Input: ['G', 3991, 'e', 3399, 'L', 'Q', 6019, 3103, 9641, 'C', 49, 4121, 'O', 'P', 'n', '1533', 'f', 'v', 'x', '9923', '1481', '7189', '4481', '307', 'z', 'b', 'x', 'R', 'G', '2469', 'W', 'U', '3747', 'T', 'x', 'm', '2917', 'z', 'p', 'Z', 'z', 'j', 'E', 'Q', 6917, 5565, 6917, 'Q', 'I', 1879, 2327, 'X', 5315, 'n', 'T', 'k', 8663, 43, 'Y', 7171, 'f', 'r', 3955, 'L', 's', 9283], [3103, 'R', 'n', '1533', 'f', 'v', 'x', '9923', '1481', '7189', '4481', '307', 'z', 'b', 'x', 'R', 'G', '2469', 'W', 'U', '3747', 'T', 'x', 'm', '2917', 'z', 'p', 'Z', 'z', 'w', 99, 9945, 't', 5593, 5419, 8975, 7123, 675, 'Q', 'G', 1963, 6821, 'A', 3861, 1925, 3831, 7133, 7551, 1299, 'R', 'L']
Output:
n, 1533, f, v, x, 9923, 1481, 7189, 4481, 307, z, b, x, R, G, 2469, W, U, 3747, T, x, m, 2917, z, p, Z, z