Revolut Interview Question

How does HashMap work in general?