Amazon interview question

Program to find the longest common subsequence (in a sequence)