Deutsche Telekom Interview Question

How can you make Hashset accept duplicate value?