/// A subsequence is a sequence that can be derived from another sequence by deleting some elements without changing the order of the remaining elements.
/// Longest common subsequence (LCS) of 2 sequences is a subsequence, with maximal length, which is common to both the sequences.
///
/// Given two sequences of integers, A = [a[1], a[2], ... , a[n]] and B = [b[1], b[2], ... , b[m]], find the longest common subsequence and print it as a line of space-separated integers.
/// If there are multiple common subsequences with the same maximum length, print any one of them.
///
/// In case multiple solutions exist, print any of them.
/// It is guaranteed that at least one non-empty common subsequence will exist.