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
[6333, 413, '9699', '2337', '3021', '9427', 'd', 'q', 'i', '3133', 'E', '489', 'B', '1711', '1895', '6413', '3815', 'q', '6599', 'z', 'v', 'G', 'Z', '1415', 'H', 'M', '7705', '8317', 'L', '5407', '5667', '7011', 'P', 2213, 'b', 9911, 'F', 'p', 'V', 'z', 'o', 9275, 6181, 'e', 'Z', 'P', 'H', 3771, 'D', 425], ['z', 9957, 5623, 2481, '9699', '2337', '3021', '9427', 'd', 'q', 'i', '3133', 'E', '489', 'B', '1711', '1895', '6413', '3815', 'q', '6599', 'z', 'v', 'G', 'Z', '1415', 'H', 'M', '7705', '8317', 'L', '5407', '5667', '7011', 'd', 4347, 8937, 'H', 'g', 'A', 5413, 1279, 5681, 'U', 't', 'g', 2771, 7531, 'O', 733, 7305, 'a', 2941, 5881, 'C', 'M', 'i', 'y']
Answer:
9699, 2337, 3021, 9427, d, q, i, 3133, E, 489, B, 1711, 1895, 6413, 3815, q, 6599, z, v, G, Z, 1415, H, M, 7705, 8317, L, 5407, 5667, 7011