Concept Flow - GroupBy for categorization
Start with List
Choose Key Function
Iterate over each item
Apply Key Function to item
Add item to group with that key
Repeat for all items
Return Map of groups
GroupBy takes a list and a function to decide keys, then puts items into groups by those keys.