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
['y', 'O', 'V', 'm', 1623, 1521, 'k', 4995, 9791, 8607, '3933', 'L', '7513', 'r', '6573', 'c', 'r', 'U', 'b', 'F', '5023', 'B', '3817', 'F', '9855', '8861', '3395', 'L', '3093', 'L', '19', '3905', 'p', '1807', '4077', 'w', 'w', '5903', 'o', 9409, 'Z', 977, 'y', 'V', 7795, 2645, 2997, 'f', 't', 'Y', 'F', 'k', 8739, 'b', 'x', 7207, 3815, 9117, 577, 'C', 'y', 8081, 6325, 4061, 5791], [1289, 3413, 5101, 6295, 'd', 'z', 1347, 'x', 'f', 'g', 985, 8403, 'o', 8457, 'G', 't', 1555, 3269, 4601, 'H', 'P', 'U', '3933', 'L', '7513', 'r', '6573', 'c', 'r', 'U', 'b', 'F', '5023', 'B', '3817', 'F', '9855', '8861', '3395', 'L', '3093', 'L', '19', '3905', 'p', '1807', '4077', 'w', 'w', '5903', 'j', 6349, 2503, 9327, 'R']
Answer:
3933, L, 7513, r, 6573, c, r, U, b, F, 5023, B, 3817, F, 9855, 8861, 3395, L, 3093, L, 19, 3905, p, 1807, 4077, w, w, 5903