Question d’entretien chez Optum

Print subsequence of given array