Instructions: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Input: [3253, 8457, 3641, 'K', 9309, 'B', 6355, 6515, 4777, 2749, 5223, 's', 2435, 8083, 'u', 'Y', 's', 431, 'p', 4515, 2901, 5119, 'Q', '2083', 'h', 'J', 'M', 'M', 'h', 'R', 'O', '6053', '2313', 'J', '1945', '9481', 'z', '8329', '4927', '4293', 't', 'B', 'U', 'y', '1671', '3603', 'A', 'S', 1597, 6903, 'E', 'C', 6717, 5963, 399, 2371, 4973, 1767, 1663, 7991, 'p', 'Z', 9127, 1369, 2551], [4017, 535, 'B', 8351, 8359, 5417, 7995, 2725, 'n', 'p', 'O', 1705, 5321, 4665, 93, 'v', '2083', 'h', 'J', 'M', 'M', 'h', 'R', 'O', '6053', '2313', 'J', '1945', '9481', 'z', '8329', '4927', '4293', 't', 'B', 'U', 'y', '1671', '3603', 'A', 'x', 237, 'E', 7373, 'O', 9647, 4087, 'y', 'R', 5495, 5983, 'P', 8231, 'Y', 'k', 'U', 'g', 'k', 949, 243, 'd', 8905, 'O']
Output:
2083, h, J, M, M, h, R, O, 6053, 2313, J, 1945, 9481, z, 8329, 4927, 4293, t, B, U, y, 1671, 3603, A