Pergunta de entrevista da empresa Microsoft

The technical question was to find the repeated items in a array.