DataArt Interview Question

The algorithm of adding new object into HashMap