Revolut interview question

How does HashMap work in general?