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
[8603, 5275, 'L', 'y', 'b', 2459, 4769, 10007, 5447, 't', 'b', 3641, 1113, 'u', '2541', '7843', 'f', 'W', '7947', '3855', '1999', 'Q', '7965', '1325', 'T', '8639', 'a', '3011', '7071', 'v', 'Z', 5003, 1861, 'a', 'n', 6825, 4995, 7399, 'E', 6843, 'r'], [6727, 2315, 3769, 7741, 'u', 1575, 7673, 3647, 8763, 'r', 1909, 'F', '2541', '7843', 'f', 'W', '7947', '3855', '1999', 'Q', '7965', '1325', 'T', '8639', 'a', '3011', '7071', 'v', 'r', 'C', 2647, 'T', 'U', 3657, 'l', 8155, 'D', 'f', 9207, 1431, 'Z', 6079]
Answer:
2541, 7843, f, W, 7947, 3855, 1999, Q, 7965, 1325, T, 8639, a, 3011, 7071, v