Instructions: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Input: [2275, 1225, 'V', 9691, 9231, 2447, 'i', 8155, 9387, 9121, 2675, 9837, 'J', 6901, 'j', 6915, 1573, 953, 4433, 4889, 9735, 5459, 'j', '3273', '8157', '7823', 'e', '2391', '4111', 'f', 'a', 'W', '6659', 'k', '9839', 'n', 'b', '455', '2551', 'f', 'c', 'h', 'j', '3935', 'k', 'R', '5505', 'u', '3727', 'R', 'y', 'S', 'c', 6713, 5899, 253, 41], [3353, 6177, 31, 8685, 'o', 'X', 'e', 'n', 8003, 'c', 1647, 9411, 'B', 7401, 9719, 7327, 1965, '3273', '8157', '7823', 'e', '2391', '4111', 'f', 'a', 'W', '6659', 'k', '9839', 'n', 'b', '455', '2551', 'f', 'c', 'h', 'j', '3935', 'k', 'R', '5505', 'u', '3727', 'S', 'U', 9269, 's', 975, 7635, 'U', 'P', 2015, 'B', 4185, 7535, 'n', 8811, 'P', 4291, 4101, 'x', 'w', 7763, 7997]
Output:
3273, 8157, 7823, e, 2391, 4111, f, a, W, 6659, k, 9839, n, b, 455, 2551, f, c, h, j, 3935, k, R, 5505, u, 3727