Pregunta de entrevista de Amazon

Some questions about hashmap and array list