Definition: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Input: [2689, 9235, 2315, 5203, 1605, 9809, 2405, 4257, 1119, 2059, 4065, 'S', 8037, 'h', 'k', 5933, 'k', 6259, 3539, 'j', '5837', 'a', 'b', 'm', '1603', 'G', '5075', '9663', 'n', 'N', 'E', '9841', '9791', '1763', 'N', '9723', '1713', '7633', 'e', 'd', '1239', '1379', '6459', 'v', 'B', 'o', 'z', 'P', 'J', 'z', 'm', 1357], [5027, 'z', 8349, 5957, 'a', 'X', 'M', 9889, 'c', 'c', 'u', 999, 'I', 'r', 9025, 4121, 7557, 773, 'C', 9611, 7121, 'H', 'o', 4779, 's', 'c', 'O', 'j', '5837', 'a', 'b', 'm', '1603', 'G', '5075', '9663', 'n', 'N', 'E', '9841', '9791', '1763', 'N', '9723', '1713', '7633', 'e', 'd', '1239', '1379', '6459', 'v', 'B', 'o', 'z', 'N', 9831, 5915, 223, 3295, 'u', 'l', 5131, 'e', 'b', 'K', 'm', 'N', 6615, 1325]
Output:
j, 5837, a, b, m, 1603, G, 5075, 9663, n, N, E, 9841, 9791, 1763, N, 9723, 1713, 7633, e, d, 1239, 1379, 6459, v, B, o, z