Definition: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Input: [5357, 2321, 'y', 1987, 6095, 's', 1283, 4977, 'y', 'V', 'l', 1513, 4453, 99, '1545', 'X', 'c', '8021', '7723', '4051', '2895', '4739', '6395', 'C', 'v', 'P', 'd', '3185', 'h', 'L', 2573, 'x', 1381, 3677, 4905, 4311], [1361, 'f', 'p', 8697, 4025, 2617, 'C', 'f', 7673, '1545', 'X', 'c', '8021', '7723', '4051', '2895', '4739', '6395', 'C', 'v', 'P', 'd', '3185', 'l', 9203, 'j', 'p', 'I', 7467, 'j', 8015, 5583]
Output:
1545, X, c, 8021, 7723, 4051, 2895, 4739, 6395, C, v, P, d, 3185