Pregunta de entrevista de Edmunds.com

Why does this output have duplicates