Pergunta de entrevista da empresa 10Decoders Consultancy Services

Find duplicate from array and count how many times?