Pergunta de entrevista da empresa Bloomberg

Write code to count the number of repeated values in an array