Pergunta de entrevista da empresa Edmunds.com

Why does this output have duplicates