Question d’entretien chez Google

Remove duplicates in a list. Optimize time complexity.