Remove duplicate from contact list.
Utilisateur anonyme
We can use a HashMap for it where name will be the key and phone number will be the value. If second time any name appears then its key will be already present in the map and it will be deleted.