Solve a hash map coding question.
Implement group_anagrams(words). Return a list of groups, where words containing the same letters appear together. Preserve the order of groups by each group’s first appearance, and preserve the original order of words within each group.
Input: a list of lowercase alphabetic strings. Output: a list of lists of strings.
def group_anagrams(words):