Definition: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Input: [7949, 's', 7863, 3203, 'K', 667, 'j', 's', 3921, 'Q', 'G', 'A', 'n', 'l', 'U', 't', 6289, 5585, 'i', '6759', '5901', '9849', 'a', 'm', 'W', 'Q', 'C', 'L', 'i', '9147', '6227', 'n', '4505', '5865', 'a', '2691', '671', 'M', 'O', 'C', 'f', 'P', 'm', 'k', '5619', 'L', 'T', 'q', 8613, 9853, 981, 3615, 'w', 4909, 'Z', 77, 'D', 4589, 7899, 6887, 'D', 9559, 4081, 647, 'I', 7137, 'E'], [5777, 'f', 3573, 4361, 4621, 2455, 8275, 'i', 'B', 'E', 'e', 2401, 'z', 3777, 7705, 'M', '6759', '5901', '9849', 'a', 'm', 'W', 'Q', 'C', 'L', 'i', '9147', '6227', 'n', '4505', '5865', 'a', '2691', '671', 'M', 'O', 'C', 'f', 'P', 'm', 'k', '5619', 'j', 'M', 849, 'Z', 2839, 3299, 8041, 991, 6629, 8819]
Output:
6759, 5901, 9849, a, m, W, Q, C, L, i, 9147, 6227, n, 4505, 5865, a, 2691, 671, M, O, C, f, P, m, k, 5619