Pregunta de entrevista de DataArt

The algorithm of adding new object into HashMap