How would you find all anagrams in the English language using a computer system that only has basic mathematical functions?
Assume you are given a list of lowercase English words and must group words that are anagrams of each other. Return every group containing at least two words, with each group sorted lexicographically and the groups sorted by their first word.
group_anagrams(words)
words: list of lowercase stringsdef group_anagrams(words):