Given an array of strings `strs`, group the anagrams together. You can return the answer in any order.
An anagram is a word formed by rearranging the letters of another word, using all the original letters exactly once.
def group_anagrams(strs: list[str]) -> list[list[str]]:
Given an array of strings `strs`, group the anagrams together. You can return the answer in any order.
An anagram is a word formed by rearranging the letters of another word, using all the original letters exactly once.
def group_anagrams(strs: list[str]) -> list[list[str]]: