Question d’entretien chez Infosys

solve the subsequence varient problem.