Definition: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Input: ['C', 'S', 6641, 'b', 'V', 4323, 8923, 'v', 1135, 2505, 'e', 'Q', 't', 'q', 'b', '3061', 'l', '541', 'G', 'f', 'c', 'r', '5087', '903', 'R', '7693', '2013', 'S', 'g', 6859, 2735, 4151, 'h', 'c'], ['H', 'p', 3249, 2147, 'q', 'b', '3061', 'l', '541', 'G', 'f', 'c', 'r', '5087', '903', 'R', '7693', '2013', 'S', 'F', 8095, 'e', 'F']
Output:
q, b, 3061, l, 541, G, f, c, r, 5087, 903, R, 7693, 2013, S