Obtain the most frequent number using as a Input a Map<Integer, Integer> and the grade of deep for return (int grade)