Instructions: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Input: ['D', 'a', 'd', 'e', 'n', 3131, 3219, 'n', 2815, 'v', 'a', 151, 'I', 'p', 4341, 'R', 1983, 'J', 'v', 8085, '3833', '465', 'h', 'S', '6835', 'A', 'I', '3145', '5707', 'l', '4465', 'C', 'N', 'n', 'C', '9277', '2393', 'W', '8219', '317', '1819', 'x', 'n', '6017', 'b', '4791', '5475', 'G', 'j', 5097, 2079, 'F', 'F'], [3993, 'b', 'g', 9277, 7151, 'v', 3895, 6685, 1405, 8715, 9611, 9165, 'b', 7523, 'P', 's', 'x', 3109, 9877, 'l', '3833', '465', 'h', 'S', '6835', 'A', 'I', '3145', '5707', 'l', '4465', 'C', 'N', 'n', 'C', '9277', '2393', 'W', '8219', '317', '1819', 'x', 'n', '6017', 'b', '4791', '5475', 'K', 'K', 'd', 5819, 'K', 'w', 'L', 'C', 2201, 'O', 'N', 'D', 8135, 2261, 'I', 'i', 9543, 7499, 'V', 'x', 361, 8627, 'b']
Output:
3833, 465, h, S, 6835, A, I, 3145, 5707, l, 4465, C, N, n, C, 9277, 2393, W, 8219, 317, 1819, x, n, 6017, b, 4791, 5475