You have got a list of Students. You want to know which students from your list are there from each City.
getMapOfCityToListOfStudents method currently returns an empty HashMap. Use Streams to construct a map from City to list of Students in each City.