Definition: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Input: [5835, 6159, 5635, 'm', 'L', 2449, 815, 'Y', 'O', 'p', 6733, 'v', 2923, 475, 6903, 9349, 'F', 1375, 'r', 1887, 8853, 'n', 'f', '2801', 'v', '5845', 'h', 'o', 'q', 'G', '5369', 'Q', 'A', '8183', '5677', 'z', '2971', '3325', 'g', '9157', 'j', 'j', '4379', 'o', 'N', '3029', 'T', 'r', 'A', 'V', 'P', 7935, 'J', 'Y', 1351, 7995, 'e', 10023, 943, 831, 5387, 5875, 6979, 'U', 'Z', 2977, 'B', 2123, 9763, 'L', 7435, 9343, 'o', 3391, 1065, 8549], [3201, 8919, 4945, 7943, 'i', 'J', 1079, 'a', 'U', 'C', 'M', 9035, 1411, 2145, '2801', 'v', '5845', 'h', 'o', 'q', 'G', '5369', 'Q', 'A', '8183', '5677', 'z', '2971', '3325', 'g', '9157', 'j', 'j', '4379', 'o', 'N', '3029', 'T', 'r', 'A', 'V', 'l', 4817, 9783, 'V', 'n', 'p', 9929, 7415, 'U', 8685, 'd', 'S', 'w', 'K', 2803, 'v', 441, 9541, 'R', 7761, 'l', 289, 'd', 'X']
Output:
2801, v, 5845, h, o, q, G, 5369, Q, A, 8183, 5677, z, 2971, 3325, g, 9157, j, j, 4379, o, N, 3029, T, r, A, V