Pregunta de entrevista de Deutsche Telekom

How can you make Hashset accept duplicate value?