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
[1053, 'Y', '7537', 'j', 'j', 'v', '5775', '863', '6979', 'q', '3255', '915', 'e', '3153', '6965', 'O', 'i', '8749', '9951', 'l', '5765', '2303', '8319', 't', 'T', '6451', '5155', 'H', 'q', 'e', 5971, 3227, 7921, 2853, 'M', 'n', 'W', 5527, 's', 'e', 'k', 'I', 'B', 2173, 175, 'h', 'r', 'i'], ['F', 3433, 5817, 4219, '7537', 'j', 'j', 'v', '5775', '863', '6979', 'q', '3255', '915', 'e', '3153', '6965', 'O', 'i', '8749', '9951', 'l', '5765', '2303', '8319', 't', 'T', '6451', '5155', 'H', 'q', 'p', 5701, 't', 'O', 'M', 'K', 'E', 'C']
Answer:
7537, j, j, v, 5775, 863, 6979, q, 3255, 915, e, 3153, 6965, O, i, 8749, 9951, l, 5765, 2303, 8319, t, T, 6451, 5155, H, q