Definition: In this task, you are given two lists A,B. Find the longest common subsequence in the lists A and B.
Input: [6783, 9333, 2553, 5703, 'n', 'W', 'I', 2687, 9703, 'H', 'm', 'a', 7825, 2919, 1739, '4475', '7081', 'S', 'E', '5415', 'R', '8837', '249', 'a', 'L', '7971', '8161', 'k', 'p', '3441', '1165', 'd', '4977', '7407', 'z', '197', '3293', '4983', 'H', '6311', 'N', 'Y', 6749, 8933, 1543, 'c', 'L', 6315, 'r', 7869, 2273, 8007, 'l', 'p', 'n', 7869, 3173, 1497, 'y', 4373, 'N', 1155, 2111], [4051, 'B', 7573, 'R', 6759, '4475', '7081', 'S', 'E', '5415', 'R', '8837', '249', 'a', 'L', '7971', '8161', 'k', 'p', '3441', '1165', 'd', '4977', '7407', 'z', '197', '3293', '4983', 'H', '6311', 'N', 'I', 6685, 473, 'N', 4597, 7255, 'b', 'U', 8117, 5087, 'y', 3979, 'k', 4011, 'h', 's', 3393, 'I', 'j', 'Z', 'm', 'K']
Output:
4475, 7081, S, E, 5415, R, 8837, 249, a, L, 7971, 8161, k, p, 3441, 1165, d, 4977, 7407, z, 197, 3293, 4983, H, 6311, N