Definition: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Input: [5337, 'T', 8439, 'P', 's', 3189, 9075, 3261, 1327, 'R', 'a', 6081, 'k', 'N', 9647, 5101, 'I', 'z', 1705, 8621, 'l', '8155', 'l', 'c', 'Z', 'p', 'F', 'j', 'I', '9927', '5727', 't', '6161', '9541', 't', '927', 'd', 'X', 'K', '9247', 'e', '8477', 'Z', '2145', 'j', '1463', 'j', '1425', '6563', 'm', 'Y', 6001, 'w', 'Y', 6997, 'M', 'x', 4913, 'Q', 7617, 3873, 2869, 'i', 'a', 'm', 'k', 'L', 'd', 7511], ['K', 373, 141, 6921, 'L', 'U', 'M', 'v', 'd', 2871, 'M', 7719, 'A', 'E', 'c', 'w', 9139, 's', 6431, 6405, 'c', 'o', 4945, 'q', '8155', 'l', 'c', 'Z', 'p', 'F', 'j', 'I', '9927', '5727', 't', '6161', '9541', 't', '927', 'd', 'X', 'K', '9247', 'e', '8477', 'Z', '2145', 'j', '1463', 'j', '1425', '6563', 'J', 5653, 'n', 'N', 'B', 'K', 'y', 5887, 5869, 'z', 'M', 'n', 'I', 4371, 9945]
Output:
8155, l, c, Z, p, F, j, I, 9927, 5727, t, 6161, 9541, t, 927, d, X, K, 9247, e, 8477, Z, 2145, j, 1463, j, 1425, 6563