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
['H', 9727, 'U', 2801, 5463, 'n', 'l', 861, 923, 5467, 's', 2319, 'k', '9201', 'i', 'X', '9233', '1379', '6953', 'y', 'F', '1685', '5867', '3481', 'R', 'c', 'c', 'Y', 'T', 'F', 'L', 'T', '7791', 'Z', '9473', 'y', 'X', 'I', 9133, 'K', 471, 'c', 3849, 'O', 'g', 'V', 'i', 7017, 7443, 'H'], ['a', 'v', 'Q', 'r', 9473, 9773, 'V', 't', 4317, 5121, 5067, 'x', 2395, 'A', 6345, 6275, 'f', 'k', '9201', 'i', 'X', '9233', '1379', '6953', 'y', 'F', '1685', '5867', '3481', 'R', 'c', 'c', 'Y', 'T', 'F', 'L', 'T', '7791', 'Z', '9473', 'y', 'X', 't', 1047, 't', 9447, 'F', 3911, 3939, 'x', 497, 'U', 647, 'o', 5671, 5809, 1049, 'u', 4925]
Answer:
k, 9201, i, X, 9233, 1379, 6953, y, F, 1685, 5867, 3481, R, c, c, Y, T, F, L, T, 7791, Z, 9473, y, X