Fivestars Interview Question

variant of largest common subsequence