Definition: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Input: [8563, 8949, 'y', 7599, 3249, 'h', 'F', 'A', 'e', 'D', 2515, 4525, 6999, '67', 'I', 'q', 'c', '9255', '1783', 'O', 'w', '7973', 'K', '1429', 'k', '1163', 'E', 'd', '5827', 'i', 'K', '1473', '2721', '8893', 'U', '2409', 'Q', '3099', 's', '19', 'O', 'n', 'l', 'Q', 'G', 'T', 7097, 6307, 'q', 8831, 4673], [2731, 7599, 5769, 9171, 'z', 'Z', 'd', 3567, 1365, 'M', 'm', 'Z', 6251, 'L', 'i', 'F', 2247, 'H', 'L', '67', 'I', 'q', 'c', '9255', '1783', 'O', 'w', '7973', 'K', '1429', 'k', '1163', 'E', 'd', '5827', 'i', 'K', '1473', '2721', '8893', 'U', '2409', 'Q', '3099', 's', '19', 'O', 'C', 9187, 7939, 2981, 'q', 3317, 7795, 3725, 'I', 'h', 4825, 3485, 8007, 'y', 2653, 'r', 6723, 'G', 7341]
Output:
67, I, q, c, 9255, 1783, O, w, 7973, K, 1429, k, 1163, E, d, 5827, i, K, 1473, 2721, 8893, U, 2409, Q, 3099, s, 19, O