Amazon interview question

How do HashTables work?