SLX Learning Interview Question

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