FIS interview question

How does HashMap work in Java?