Instructions: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Input: [4195, 8741, 8775, 'P', 'L', 2091, 3639, '8611', '1391', '5107', 'z', '5191', 'V', 'Y', '3379', 'n', 'e', '5297', 'n', '4117', '1953', 'O', 'U', 'A', 'I', 7583, 'T', 'V', 4725, 857, 'c', 3959], ['l', 1653, 7969, 6141, '8611', '1391', '5107', 'z', '5191', 'V', 'Y', '3379', 'n', 'e', '5297', 'n', '4117', '1953', 'O', 'U', 's', 'X', 217, 2339, 'S', 'M', 2975, 'r', 10005]
Output:
8611, 1391, 5107, z, 5191, V, Y, 3379, n, e, 5297, n, 4117, 1953, O, U