Infosys Interview Question

DSA question includes longest subsequence