Write a program in which the user is prompted for the number of values that they will be entering. The user then enters that number of integers into an array. You may assume that the user will enter no more than fifty values, and that the values can take on any value positive or negative.The output for the code will be a table with two columns.The first column is a list of the distinct array elements that have been entered. The second
column is the frequency of the number of occurrences of each element. The list should be sorted on entries in the first column smallest to largest.
As an example, if the user enters the values
-12,3-12,4,1,1,-12,1,-1,1,2,3,4,2,3,-12
the output of your program will be
N Count
-12 4
-1 1
1 4
2 2
3 3
4 2