Definition: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Input: [2963, 'Y', 1509, 9021, 'T', 'i', 475, 'b', 'f', 447, 'o', 4165, 2651, 'N', 3451, 6467, 3389, 'j', 'Y', 4777, 6335, 'l', 'w', 'a', '3679', 'O', 'o', '9571', 'j', 'm', '215', 'z', 'p', '4151', '5997', '5665', 'w', '9963', '4183', 'C', '6933', '7055', 'x', 'o', 'z', '6363', 'p', 4299, 6185, 'C', 2961, 6187, 'M', 'z', 'W', 'W', 8031, 'P', 'x', 'v', 5529, 1029, 9255, 5121, 7453, 7393, 'T'], ['q', 907, 'H', 'Y', 377, 'g', 'f', 5519, 'y', 'w', 'a', '3679', 'O', 'o', '9571', 'j', 'm', '215', 'z', 'p', '4151', '5997', '5665', 'w', '9963', '4183', 'C', '6933', '7055', 'x', 'o', 'z', '6363', 'o', 7903, 'y', 4557, 1199, 2151, 'F', 'I', 2821, 'C']
Output:
w, a, 3679, O, o, 9571, j, m, 215, z, p, 4151, 5997, 5665, w, 9963, 4183, C, 6933, 7055, x, o, z, 6363