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
[9773, 7741, 7655, 1915, 7185, 2335, 5795, '2733', 'j', '4505', 'e', 'F', '8291', '1635', '7783', 'C', '3529', 'Y', 'i', '1461', 'o', 'a', '6811', '3845', '2743', 'c', 'T', 'w', '1051', 'M', 'y', 'W', '1655', 'L', '9635', 'L', 'P', 2253, 1017, 1871, 7145, 5781, 1137, 8479, 'J', 'E', 'A', 'C', 'o', 'n', 'Q', 'U'], [6799, 9125, '2733', 'j', '4505', 'e', 'F', '8291', '1635', '7783', 'C', '3529', 'Y', 'i', '1461', 'o', 'a', '6811', '3845', '2743', 'c', 'T', 'w', '1051', 'M', 'y', 'W', '1655', 'L', '9635', 'Q', 3895, 4495, 4865, 9067, 2011, 'd', 'r', 4285, 5163, 's', 8739, 's', 'u', 7117]
Answer:
2733, j, 4505, e, F, 8291, 1635, 7783, C, 3529, Y, i, 1461, o, a, 6811, 3845, 2743, c, T, w, 1051, M, y, W, 1655, L, 9635