Infosys Interview Question

first one was Longest Common Subsequence.