What Happens Internally When You Put Data into a HashMap?

Imagine you are in a Java interview, and the interviewer asks: