Schneider Electric Interview Question

Longest Common Subsequence, DP question