Pergunta de entrevista da empresa SAP Concur

Given an array of integers, output the ones that had a duplicate.