Pregunta de entrevista de Amazon Web Services

Q: Arrays question with Hashmap and two Pointers