Part 1. Definition
In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Part 2. Example
[5797, 8817, '8297', 'b', 'U', 'b'], [5843, 8809, '8297', 'b', 'W', 'C']
Answer: 8297, b
Explanation: Here, '8297, b' is the longest common subsequence in both the input lists [5797, 8817, '8297', 'b', 'U', 'b'] and [5843, 8809, '8297', 'b', 'W', 'C'].
Part 3. Exercise
['j', 7777, 2071, 'V', 'L', '2679', 'z', 'c', '5445', 'h', 'v', '6787', 'j', 'T', '871', '1359', '2923', '6567', 's', '4219', '4249', '8051', 'Z', 'i', 9189, 2691, 1103, 'y', 'b', 4113, 9939, 'x', 'T'], ['U', 'B', 'n', 4733, 751, 8663, 'S', 'q', 2361, 'i', 8021, 8783, 5, 'E', 'P', 'L', '2679', 'z', 'c', '5445', 'h', 'v', '6787', 'j', 'T', '871', '1359', '2923', '6567', 's', '4219', '4249', '8051', 'o', 5533, 413, 'e', 129, 'w', 5251, 39, 'O', 'b']
Answer:
L, 2679, z, c, 5445, h, v, 6787, j, T, 871, 1359, 2923, 6567, s, 4219, 4249, 8051