Definition: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Input: ['d', 'C', 'Y', 9951, 'h', 'K', 'D', 6499, 8455, 'O', 'J', 4619, 'K', 3971, 1571, 'N', 'z', '1423', 'E', '5449', '2157', '7641', '3281', 't', '1033', 'P', '4517', 'R', 'M', 'z', '6619', '1631', 'm', '1883', '1545', 'a', '5827', 's', '7347', '9953', 'm', 'J', 'e', '8589', 'S', 415, 'I', 9543, 'z', 1003, 'E', 2421, 'b', 'Z', 8207, 'E', 6027], [7187, 4715, 't', 'y', 1175, 991, 'T', 4067, 'l', 'q', 7051, 2807, 6001, 'e', 2841, 'e', 4875, 'j', 'N', 'z', '1423', 'E', '5449', '2157', '7641', '3281', 't', '1033', 'P', '4517', 'R', 'M', 'z', '6619', '1631', 'm', '1883', '1545', 'a', '5827', 's', '7347', '9953', 'm', 'J', 'e', '8589', 'h', 9651, 'm', 'B', 6799, 'y', 'A', 'q']
Output:
N, z, 1423, E, 5449, 2157, 7641, 3281, t, 1033, P, 4517, R, M, z, 6619, 1631, m, 1883, 1545, a, 5827, s, 7347, 9953, m, J, e, 8589