LeetCode
Design HashSet
Click
here
for an explanation.