Instructions: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Input: [2349, 2581, 's', 'H', 8425, 'v', 1815, 3229, 6317, 'O', 'K', 't', '4143', '6253', 'i', '4721', 'V', '1701', 'd', 'n', 'J', '7171', '2447', 'l', 'T', 'u', '3573', '5901', 'M', '6541', 'p', 'Y', 'Q', '4377', 'X', '2563', 'Y', 'q', 'c', 'q', 'X', 'T', 2253, 'b', 'b', 7653, 1509, 'O'], ['j', 'e', 'v', 2361, 'k', 'G', 2907, 7837, 'K', 'd', 5735, 877, 'L', 7005, 'X', 8177, 5907, 'P', 's', 'N', 3955, 7563, 'U', 6561, 2439, 1465, 'N', '4143', '6253', 'i', '4721', 'V', '1701', 'd', 'n', 'J', '7171', '2447', 'l', 'T', 'u', '3573', '5901', 'M', '6541', 'p', 'Y', 'Q', '4377', 'X', '2563', 'Y', 'q', 'c', 'c', 6589, 1323, 'S']
Output:
4143, 6253, i, 4721, V, 1701, d, n, J, 7171, 2447, l, T, u, 3573, 5901, M, 6541, p, Y, Q, 4377, X, 2563, Y, q, c