Instructions: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Input: [4235, 'O', 'l', 2759, 'A', 'l', 't', 513, 5027, '2875', 'O', 'l', '3127', 'f', '7061', 'R', 'm', 'Q', '4451', 'Y', 'A', '8189', 'o', '7607', 'R', '9247', 'q', '5025', '3431', '3777', '8705', 'l', '557', 'Q', 9991, 2561, 'X', 4317, 4199, 7315, 1205, 7181], [6479, 1121, 9463, 1457, 251, 'F', 'z', 'U', 'P', 7559, 'b', 1241, 'B', '2875', 'O', 'l', '3127', 'f', '7061', 'R', 'm', 'Q', '4451', 'Y', 'A', '8189', 'o', '7607', 'R', '9247', 'q', '5025', '3431', '3777', '8705', 'l', '557', 'D', 'C', 'G', 'a', 1877, 1755, 7631, 7009, 3493, 8479, 'c', 'W', 3645, 'U', 7779, 4069]
Output:
2875, O, l, 3127, f, 7061, R, m, Q, 4451, Y, A, 8189, o, 7607, R, 9247, q, 5025, 3431, 3777, 8705, l, 557