Esri interview question

Difference between hashset and stacks and how to implement them.