Instructions: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Input: [4369, 'K', 'R', 'n', 'N', 'O', 'U', 6367, 'D', 4893, 2613, 2891, 3417, 'e', 'Z', 771, '9377', '8685', '4945', 'W', 'Z', 'c', '5169', 'S', '6805', 'O', 'd', 'e', '9153', '3547', 'X', '5977', '2127', '3871', 'D', 'O', '7049', 'f', '5559', 'V', 'j', 'v', 3571, 'd', 9857, 6293, 'A', 2461, 37, 5051, 5595, 'L', 'E', 8925, 6807, 'e', 'K', 'q', 7077], [8949, 3701, 3763, 'J', 9045, 2921, 5819, 479, 'k', 'I', 'E', 6493, 8001, 5225, 1553, 'o', 'Q', 'X', 4139, 'X', '9377', '8685', '4945', 'W', 'Z', 'c', '5169', 'S', '6805', 'O', 'd', 'e', '9153', '3547', 'X', '5977', '2127', '3871', 'D', 'O', '7049', 'f', '5559', 'j', 'b', 'd', 2353, 'f', 'n', 249, 3663, 'c', 'W']
Output:
9377, 8685, 4945, W, Z, c, 5169, S, 6805, O, d, e, 9153, 3547, X, 5977, 2127, 3871, D, O, 7049, f, 5559