Definition: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Input: [5413, 'T', 'i', 'Q', 'Y', 'H', '2143', 'M', 'p', 'M', 'l'], ['Y', 'p', 'Y', 'H', '2143', 'M', 'A', 5017, 4553]
Output:
Y, H, 2143, M