Definition: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Input: [5207, 4185, 'j', 10011, '7615', '5923', 'n', '8181', '9193', '1075', 'Z', '3183', '7641', '4575', 'Y', 'I', 589, 5751, 1397, 'D', 7057, 'm', 'G'], ['u', 6265, 5979, '7615', '5923', 'n', '8181', '9193', '1075', 'Z', '3183', '7641', '4575', 'Y', 'j', 7707, 'V', 4291, 193, 4057, 10021]
Output:
7615, 5923, n, 8181, 9193, 1075, Z, 3183, 7641, 4575, Y