Goldman Sachs interview question

How does HashMap work internally in Java?