Pergunta de entrevista da empresa SLX Learning

Write a program to get distinct values and there count from array