Definition: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Input: ['E', 'C', 'R', 'O', 'S', 'i', 'w', 6157, 2231, 5709, 'O', 8279, 2567, 9695, 'Q', 9237, 4921, 2831, 'z', 'O', 'V', 'f', 'k', 'E', 'U', 'L', '3881', 'F', 'p', 'U', 'C', '8251', '445', 'f', 'I', 'Y', 'w', 'Z', 'v', '4127', '641', '9987', '177', '7095', '823', '3289', '865', 'b', '7333', 'c', '1287', '3385', 'I', 'C', 'V'], [557, 'F', 1021, 'k', 37, 's', 3915, 6481, 'S', 'd', 1583, 2249, 429, 'f', 'U', 6451, 961, 'M', 10025, 'N', 'i', 'g', 8515, 'k', 'E', 'U', 'L', '3881', 'F', 'p', 'U', 'C', '8251', '445', 'f', 'I', 'Y', 'w', 'Z', 'v', '4127', '641', '9987', '177', '7095', '823', '3289', '865', 'b', '7333', 'c', '1287', '3385', 'k', 4903, 'F', 'Z', 1559, 1043, 'c', 'y', 6265, 'E', 1071, 6773, 517, 3195, 2991, 'd', 111, 'c', 7459, 'X', 'r', 'w', 'z', 6461]
Output:
k, E, U, L, 3881, F, p, U, C, 8251, 445, f, I, Y, w, Z, v, 4127, 641, 9987, 177, 7095, 823, 3289, 865, b, 7333, c, 1287, 3385