Pregunta de entrevista de AMD

Hashmap + ArrayList based DSA question with 2 follow-ups