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
[2801, 'O', 'u', 'f', 'k', 4369, 'u', 7213, 'r', 'g', 2153, 'v', 'q', 'L', 1619, 7167, 'T', 'J', 'p', 'q', 'V', 'M', '7619', 'e', 'S', '7023', 'S', 'f', '7971', 'K', '501', '7417', 'O', '4425', 'i', '8499', '9597', 'r', 'W', 'M', 'C', '483', '391', '7109', 'M', 'K', 399, 5429, 3261, 2253, 'y', 'D', 'b', 8761, 'e', 'Q', 609, 'S', 8151, 3055, 'j', 'y', 1837, 'j', 9515], [2707, 'd', 'V', 'M', '7619', 'e', 'S', '7023', 'S', 'f', '7971', 'K', '501', '7417', 'O', '4425', 'i', '8499', '9597', 'r', 'W', 'M', 'C', '483', '391', '7109', 'M', 'N', 1081, 5089, 2765, 5979, 'X', 'e', 6665, 'n', 'Z', 'i', 'p', 2647, 'O', 2669]
Answer:
V, M, 7619, e, S, 7023, S, f, 7971, K, 501, 7417, O, 4425, i, 8499, 9597, r, W, M, C, 483, 391, 7109, M