Pergunta de entrevista da empresa DataArt

The algorithm of adding new object into HashMap