Amazon interview question

Explain how hash tables work?