It’s exactly the same process as grouping employees by department. You receive a Division for each personnel and that will become a key while in the map, and the corresponding values tend to be the lists of workforce assigned to that Division. In this instance, the keys will be the sorted phrases, and also the values are classified as the diction