Definition: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Input: [7643, 1309, 'Q', 'B', 6285, 'O', 1319, 'a', 'h', 'x', 301, 839, '2757', '6779', '1961', 'I', '8139', '4053', 'r', 'l', 'n', 'Y', '1095', '8765', 'a', '8381', '7749', 'Y', '8949', '7031', '5437', 'n', 'H', '8555', 'x', '1079', 'n', 'k', 's', 205, 9535, 7153, 'A', 'g', 9447, 'l', 'R', 'O', 5605, 'U', 7855, 1011, 1339, 8977, 'T', 8109, 8219, 8985, 4885, 'B'], [103, 'V', 3097, 'A', 6071, 'h', 'r', 2735, 'Z', 'H', 'F', 5661, 5001, 5003, 2589, 'c', 5741, 'f', 'n', 'K', '2757', '6779', '1961', 'I', '8139', '4053', 'r', 'l', 'n', 'Y', '1095', '8765', 'a', '8381', '7749', 'Y', '8949', '7031', '5437', 'n', 'H', '8555', 'x', '1079', 'n', 'o', 1977, 'Y', 5203]
Output:
2757, 6779, 1961, I, 8139, 4053, r, l, n, Y, 1095, 8765, a, 8381, 7749, Y, 8949, 7031, 5437, n, H, 8555, x, 1079, n