Pregunta de entrevista de Tesla

caching using hashmap and getting unique additions