Infosys Interview Question

finding longest common subsequence between two substring