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
[1863, 'E', 5803, 'P', 'r', 1619, 'b', 1625, 'H', 's', 7223, 'L', 'K', 'q', '9419', 'm', 'N', '5311', '8909', 'W', 'y', '7417', '3967', '7295', '2689', '8639', '5373', 'h', '5219', '6905', '1325', 'k', 't', '8791', 'G', 'X', 'I', '9625', 'W', 5479, 'A', 3257, 3253, 'u'], ['U', 'Y', 2861, 'C', 'L', 'r', 'W', 'w', 2925, 'm', 'm', 'R', 'q', 11, 'n', 6207, 7439, 'n', 2657, 2447, 1937, 'K', 'q', '9419', 'm', 'N', '5311', '8909', 'W', 'y', '7417', '3967', '7295', '2689', '8639', '5373', 'h', '5219', '6905', '1325', 'k', 't', '8791', 'G', 'X', 'I', '9625', 'E', 'y', 8059, 'a', 5393, 439, 'x']
Answer:
K, q, 9419, m, N, 5311, 8909, W, y, 7417, 3967, 7295, 2689, 8639, 5373, h, 5219, 6905, 1325, k, t, 8791, G, X, I, 9625