Definition: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Input: [6963, 1851, 1137, 2409, 'Y', 'n', 'w', 'm', 6833, '4181', '6851', 'a', '1187', 'c', '455', '6599', 'L', '2309', 'R', 'n', '3843', 'k', 'z', 'D', 'J', '6633', 'x', 'o', 'c', 'W', 'c', '2925', 'J', 'o', '4091', '1167', '4911', '1693', '3483', 'P', 'w', 'o', 3227, 'f', 'm', 5455, 5825, 1915, 'F', 'Z', 'U', 3911, 8171, 'y', 595, 'i', 'Y', 'r', 'L', 9221, 9429, 2873, 'n', 'V', 'S', 'O'], [7753, 'r', 't', 'n', 5807, 4641, 'j', 841, 6691, 'I', 7885, 'g', 'N', '4181', '6851', 'a', '1187', 'c', '455', '6599', 'L', '2309', 'R', 'n', '3843', 'k', 'z', 'D', 'J', '6633', 'x', 'o', 'c', 'W', 'c', '2925', 'J', 'o', '4091', '1167', '4911', '1693', '3483', 'm', 'g', 'x', 3965, 'd', 2741, 3585, 'M', 'z', 'x', 'O', 'k', 'O', 6109]
Output:
4181, 6851, a, 1187, c, 455, 6599, L, 2309, R, n, 3843, k, z, D, J, 6633, x, o, c, W, c, 2925, J, o, 4091, 1167, 4911, 1693, 3483