Instructions: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Input: [8303, 'z', 'u', 'h', 'c', 3405, 'G', 'E', 'T', 'q', '1351', 'I', 'M', '6265', 's', 'e', '7615', '5121', 'R', '6903', 'N', '6329', 'O', 'n', '5173', '2525', '4185', '2637', '8803', '5179', 'a', 'h', 'J', '4051', '2367', '2861', '3361', 'Q', 'x', 8699, 'r', 'z', 'm', 'm', 'H', 'o', 3485, 173, 7997, 273], [6025, 5333, 'u', 4601, 'A', 6817, 'B', 'D', 'p', 'p', 'e', 'v', 3673, 'n', 'd', 6219, 7843, 'd', 'w', 293, 6629, 'I', 'V', 4667, 8965, 'Y', 2533, 'q', '1351', 'I', 'M', '6265', 's', 'e', '7615', '5121', 'R', '6903', 'N', '6329', 'O', 'n', '5173', '2525', '4185', '2637', '8803', '5179', 'a', 'h', 'J', '4051', '2367', '2861', '3361', 'Q', 'O', 'l', 277, 'u', 1485, 'm', 7949, 'n', 'v', 6169, 'H', 4441, 'B', 'd', 'p', 'I', 3683, 'R', 'h', 'L', 9301, 8183, 'E', 'u', 873, 'f', 6243, 'I']
Output:
q, 1351, I, M, 6265, s, e, 7615, 5121, R, 6903, N, 6329, O, n, 5173, 2525, 4185, 2637, 8803, 5179, a, h, J, 4051, 2367, 2861, 3361, Q