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
[9515, 2115, 7423, 'D', 6209, 5819, 'I', 43, 7069, 8077, 6411, 'V', 3033, 2631, 1943, 1799, 1257, 339, 2785, 6459, 'r', 'v', '8677', '7001', '2375', 'L', '3487', '8153', 'W', '5519', 'a', 'F', '3679', 'K', '5385', '5083', '7203', 't', '3843', 'e', 'y', 'K', 'u', '7321', '3845', 'J', '9269', 'b', 'G', 409, 7675, 'g', 6155, 8511, 'Z', 1791, 'E', 'B'], [2851, 5647, 9867, 1439, 6349, 'f', 'F', 'K', '8677', '7001', '2375', 'L', '3487', '8153', 'W', '5519', 'a', 'F', '3679', 'K', '5385', '5083', '7203', 't', '3843', 'e', 'y', 'K', 'u', '7321', '3845', 'J', '9269', 'k', 7967, 'G', 'e', 'p', 5791, 'G', 'K', 'L', 221, 'S', 'l', 8247, 759, 1921, 'Z', 7959, 2017, 6139, 395, 1535, 9611, 4341, 1667]
Answer:
8677, 7001, 2375, L, 3487, 8153, W, 5519, a, F, 3679, K, 5385, 5083, 7203, t, 3843, e, y, K, u, 7321, 3845, J, 9269