Definition: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Input: [4531, 9221, 'D', 'I', 9081, 2889, 7873, 'F', 3859, 'v', 4371, 'R', 'p', 7911, 'R', 'h', 5173, 647, 'J', 'Q', 7955, 'K', 'I', 'o', 'G', 'A', '555', '4349', '327', '7683', 'k', '6587', 'E', 'B', 'U', 'V', '8829', 'K', 'l', 'N', '6261', 'f', 'c', 'q', '3973', 'g', 'u', '3591', 'O', '8705', 'H', 'j', '1497', '965', 'U', '5929', 'c', 7091, 'V', 'S', 'l', 'N', 9913, 'Z', 1721, 6455, 1311, 'S', 9579, 7331, 'J', 3085, 8811, 'P', 'W', 'Z', 7215, 9677, 's', 'L', 'c', 3401, 'r', 'B'], ['v', 'h', 'b', '555', '4349', '327', '7683', 'k', '6587', 'E', 'B', 'U', 'V', '8829', 'K', 'l', 'N', '6261', 'f', 'c', 'q', '3973', 'g', 'u', '3591', 'O', '8705', 'H', 'j', '1497', '965', 'U', '5929', 'A', 'I']
Output:
555, 4349, 327, 7683, k, 6587, E, B, U, V, 8829, K, l, N, 6261, f, c, q, 3973, g, u, 3591, O, 8705, H, j, 1497, 965, U, 5929