Infosys Interview Question

Longest common subsequence , count Inversion