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
['J', 'x', 753, 8003, 'F', 'g', 'p', 7083, 6905, 'O', 'g', 's', 'Y', 'C', 'x', 'a', 1203, 'E', 1131, 'I', '6869', '5695', 'Y', '3291', '5643', 'o', '5075', '2523', '529', '3431', '6077', '3295', '5143', 'W', '5787', '3901', '397', '9857', 'k', 'Q', 't', 'K', 's', 't', 6719, 2639], ['C', 'Q', 'j', 'p', 5883, 5707, 'x', 'v', 4371, 'I', '6869', '5695', 'Y', '3291', '5643', 'o', '5075', '2523', '529', '3431', '6077', '3295', '5143', 'W', '5787', '3901', '397', '9857', 'k', 'Q', 't', 'K', 'h', 8497, 'E', 'Y', 7351, 'K', 5415, 'a', 9541, 'Q', 9095, 'z', 'f', 'g', 'Y', 5635, 7029, 6533]
Answer:
I, 6869, 5695, Y, 3291, 5643, o, 5075, 2523, 529, 3431, 6077, 3295, 5143, W, 5787, 3901, 397, 9857, k, Q, t, K