Bank of America interview question

HashMap internal working