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
[7393, 361, 7033, 'Q', 5143, 4937, 5079, '4513', 'S', '2005', '9805', 'H', 't', '2457', '8697', 'm', 'N', 9443, 9637, 5881, 2579, 'Q'], ['x', 3109, 6275, 'f', 9511, '4513', 'S', '2005', '9805', 'H', 't', '2457', '8697', 'm', 'w', 8347, 817, 'e', 1859, 1797, 'I']
Answer:
4513, S, 2005, 9805, H, t, 2457, 8697, m