Question 1--Write a function that takes an integer array and returns one copy of each integer and
number of occurrences of each integer in the array.The function should return the result as a matrix
with two columns.The first column contains the integers,and the second column contains number of
occurrences of corresponding integers
Example:
Input:
12
17
3
12
5
12
12
8
8
4
3
Output:
12 17 3 5 8 4
4 1 2 1
1