Nagarro Interview Question

Frequenct of number in array