Group students by grade and having max age
in your code, you have getter and setter for id. But those methods are not used. I have posted a similar question before. And multiple people told me "we shouldn't have dead code." 

Since you want to return List of Student, I would construct the HashMap to map from string(grade) to Student instead of string to integer (where you will lose the student id).