Definition: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Input: ['H', 'J', 671, 2473, 5241, 'r', 8671, 'C', 'O', 1821, 1703, 'd', 'S', 'z', 4429, 4003, 'n', 2265, 6521, 3965, 4053, 'I', 'p', 'o', 'N', 'h', 'g', 'k', 'S', '353', '351', 'c', 'f', '3561', '7451', '6701', 'a', 'x', '6865', 'z', '6415', 'r', '2021', '1413', '4979', '4861', '7261', 'K', 2553, 995, 'H', 4159, 7583, 951, 'J', 5837, 8637], [2943, 9031, 't', 'B', 8287, 'o', 'N', 'h', 'g', 'k', 'S', '353', '351', 'c', 'f', '3561', '7451', '6701', 'a', 'x', '6865', 'z', '6415', 'r', '2021', '1413', '4979', '4861', '7261', 'v', 'J', 'I', 'T', 8003, 'i', 'l', 'E', 'i', 4859, 5113, 5133, 6159, 'u']
Output:
o, N, h, g, k, S, 353, 351, c, f, 3561, 7451, 6701, a, x, 6865, z, 6415, r, 2021, 1413, 4979, 4861, 7261