PayPal Interview Question

Longest common subsequence and to print the subsequence