Instructions: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Input: ['L', 'H', 'm', 'F', 673, 'K', 'V', 1433, 's', 'a', 'I', 'I', 2633, 'e', 'z', 2809, 'g', 'N', 'O', '2981', '1075', 'z', 'b', 'K', '6363', '9417', '1337', 'P', '1747', 'x', 'T', '3077', '5553', '3611', '4441', 'B', '8843', '4385', '6727', 'g', 'K', '1965', '4865', 'x', '4761', 'q', 7445, 6305, 't', 'c', 6349, 1831, 5589, 'N', 'F', 'Q', 'y', 1765, 7317, 2997, 'P', 8417, 7809], ['Z', 'j', 7853, 2205, 5247, 6167, 't', 3079, 7175, 2553, 2011, 'o', 1223, 2851, 'M', 'd', 'H', 'F', 5839, 'O', 9619, 6165, 'I', 8161, 'U', '2981', '1075', 'z', 'b', 'K', '6363', '9417', '1337', 'P', '1747', 'x', 'T', '3077', '5553', '3611', '4441', 'B', '8843', '4385', '6727', 'g', 'K', '1965', '4865', 'x', '4761', 'i', 5203, 'j', 'z', 5351, 5465, 'v', 5065, 'a', 8611, 2005, 5219, 1491, 'j', 4105, 'L', 4757]
Output:
2981, 1075, z, b, K, 6363, 9417, 1337, P, 1747, x, T, 3077, 5553, 3611, 4441, B, 8843, 4385, 6727, g, K, 1965, 4865, x, 4761