PayPal interview question

Longest common subsequence and to print the subsequence