Definition: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Input: ['u', 6019, 6429, 'I', 'Y', 493, 'e', 8151, 875, 'n', 'z', 'J', 3503, 9359, 'F', '1945', '9653', '7531', '5021', '561', 's', 'O', '3571', 'm', '1055', 'i', 'c', '4225', '7857', '3507', 'L', 'g', 's', 'k', 4903, 5415], [3903, 'F', 191, 2785, '1945', '9653', '7531', '5021', '561', 's', 'O', '3571', 'm', '1055', 'i', 'c', '4225', '7857', '3507', 'e', 7971, 'L', 'o', 'M', 'C', 749, 'r', 825, 'd', 9063, 3051, 3103, 3107]
Output:
1945, 9653, 7531, 5021, 561, s, O, 3571, m, 1055, i, c, 4225, 7857, 3507