Amazon interview question

How does hash table works