Question d’entretien chez Okta

print duplicates in array with optimal solution