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
[4279, 'n', 59, 7745, 'm', 4231, '9499', 'L', '5197', 'M', '6243', 'I', '8381', 'I', '7061', 'W', 'w', 3763, 'W', 'm', 'k', 6069], ['S', 2379, 'C', 'B', 'Q', '9499', 'L', '5197', 'M', '6243', 'I', '8381', 'I', '7061', 'W', 'B', 2049, 8743, 9393, 9863, 'v']
Answer:
9499, L, 5197, M, 6243, I, 8381, I, 7061, W