Creospan interview question

HashMap key understanding, how to resolve the key collision.