I am doing this practice problem that wants me to write a function that can calculate the digits that occur the most number of times in the array.
The example is input:
x = c(25, 2, 3, 57, 38, 41)
and the return value is 2, 3, 5, since these numbers 2, 3 and 5 all occurs 2 times which is the most.