Instructions: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Input: [8839, 4679, 4063, 1431, 'Z', 6241, 4745, 'M', 8669, 'u', 'i', 2455, 'z', 457, 2857, 2879, 4549, 6859, 'C', 'j', 'M', 'j', 3229, 'l', '3569', 'G', 'u', '2581', '7653', 'M', 'K', '1413', 'd', 'p', 's', 'f', 'S', '1365', 'i', 'Z', '1901', 'j', 'G', 's', '5981', '7505', 'O', 'S', '4443', '7339', 'J', 'n', 'D', 'X', 8859, 1541, 'h', 'f', 6427, 3371, 3111, 5229, 7879, 'J', 3133], [3645, 'E', 'D', 'A', 315, 8507, 'S', 7569, 'Y', 8367, 'V', 'T', 1189, 't', 'G', '3569', 'G', 'u', '2581', '7653', 'M', 'K', '1413', 'd', 'p', 's', 'f', 'S', '1365', 'i', 'Z', '1901', 'j', 'G', 's', '5981', '7505', 'O', 'S', '4443', '7339', 'f', 6491, 'v', 9095, 1807, 'P', 'Y', 6533, 429, 'E', 153, 7155, 'J', 'i']
Output:
3569, G, u, 2581, 7653, M, K, 1413, d, p, s, f, S, 1365, i, Z, 1901, j, G, s, 5981, 7505, O, S, 4443, 7339