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
[5697, 9055, 'k', 3779, 8347, '6105', 'F', '5565', 'r', '293', 'I', '6617', '1955', 'N', '5695', '8433', 'j', '9861', '6325', 's', '6809', '7223', 'I', 'W', 'W', '3577', 'I', 'E', 'O', 'f', 6065, 7487, 'Z', 6929, 4087, 'y', 'D', 9509, 'k', 'H', 7541, 'Y', 5483, 1049, 7577, 'A', 725, 8167], ['s', 'B', 2439, 'E', 'q', 5699, '6105', 'F', '5565', 'r', '293', 'I', '6617', '1955', 'N', '5695', '8433', 'j', '9861', '6325', 's', '6809', '7223', 'I', 'W', 'W', '3577', 'I', 'E', 'r', 9883, 2653, 1193, 'c', 'B', 1445, 'x', 'Y', 'x', 9623, 2491, 609, 'p', 3193, 'N', 8185, 3707, 1273, 'M', 1939, 'Y', 7585]
Answer:
6105, F, 5565, r, 293, I, 6617, 1955, N, 5695, 8433, j, 9861, 6325, s, 6809, 7223, I, W, W, 3577, I, E