how to retrieve the value from the original integer.
Thought process:
Probably better to use a dynamic 2D array for this, will fix later.
I created two different arrays, one to store the total count of
occurrence of each digit for all values in the given array and
one to store the current count of digits for just one single value.
Both will be sized ten since there is only ten possible digits. (0-9)
Then I looped through, extracted each digit, and then stored the count of digits
into the array that will hold the current count of each digit for one single value.
After the value is exhausted of digits, I added the current count of the value
to the array that held the total count for all values,
and moved on to the next value in the array. I kept doing
this until there were no more values. At the end, I looped through the array that held the total count of
each digit. If the digit was 1, then that would be the uncommon digit.
Any value greater than 1 showed up more than once.