Instructions: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Input: [2209, 'T', 5113, 8869, 1025, 'i', 4443, 1911, 7633, 's', 7657, 1565, 'c', 1623, 'W', 1631, 'k', 'g', 'U', '907', '3059', '9931', 'e', 'k', '8211', '4551', 'g', '9969', 'I', '1907', '8697', '4631', 'e', 'R', 'v', 'X', 'R', '4095', '2507', 'l', 'm', 'T', 'A', '6441', '8585', '2421', 't', 9519, 'R', 'I', 'W', 'c', 5981, 1917, 2785, 391, 8487, 'G', 'V', 2567, 'k', 'U'], [937, 7919, 3069, 'B', 'k', 'k', 'g', 'U', '907', '3059', '9931', 'e', 'k', '8211', '4551', 'g', '9969', 'I', '1907', '8697', '4631', 'e', 'R', 'v', 'X', 'R', '4095', '2507', 'l', 'm', 'T', 'A', '6441', '8585', '2421', 'M', 'O', 'z', 'w', 117, 'O', 4679, 'p', 6733, 1523, 5389, 'n', 'U', 9975, 6285, 9965, 'O', 9635, 'o']
Output:
k, g, U, 907, 3059, 9931, e, k, 8211, 4551, g, 9969, I, 1907, 8697, 4631, e, R, v, X, R, 4095, 2507, l, m, T, A, 6441, 8585, 2421