Instructions: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Input: ['H', 'H', 'A', 6697, 'N', 9911, 'n', 5091, 'r', 5127, 'J', 6645, 8733, 'W', '9249', '4215', '9835', '4721', 'H', '8871', 'r', 'P', 'O', '3409', '553', '2609', '4111', 'f', 'm', '3973', '8009', '8753', 'I', '5291', 'C', 'E', '1893', '5913', 'f', '9335', 'p', 'E', 'A', 'u', 't', 'm', 'l', 6393, 8975, 'S', 4719, 601, 1063, 'P', 3961, 2361, 'd', 2211, 'E', 623], ['N', 'R', 5853, 't', '9249', '4215', '9835', '4721', 'H', '8871', 'r', 'P', 'O', '3409', '553', '2609', '4111', 'f', 'm', '3973', '8009', '8753', 'I', '5291', 'C', 'E', '1893', '5913', 'f', '9335', 'p', 'E', 'F', 6209, 'c', 7159, 9395, 1131, 'i', 'g', 'd', 1453, 'j', 7139, 8191, 'i', 6285, 9263, 10027, 641, 4877, 'N', 'N', 'l', 5247, 'A', 3895]
Output:
9249, 4215, 9835, 4721, H, 8871, r, P, O, 3409, 553, 2609, 4111, f, m, 3973, 8009, 8753, I, 5291, C, E, 1893, 5913, f, 9335, p, E