Your question is Anagram Detection. Start with the requirements on the right.
Run and submit as often as you like. When you're ready, talk me through your approach or go straight to the code.
Microsoft Teams needs to identify whether two lowercase words contain exactly the same letters, with the same frequency, regardless of order. Given two strings, determine whether they are anagrams.
Two words are anagrams when one can be rearranged to form the other. The strings contain only lowercase English letters, and no spaces or punctuation need to be handled.
Implement are_anagrams(word1, word2).
word1 and word2, containing lowercase letters from a through z.True if the strings are anagrams; otherwise, return False.def are_anagrams(word1, word2):