Mental Model
Two words are anagrams if they have the exact same letters in the same amounts, just mixed differently.
Analogy: Imagine two bags of colored beads. If both bags have the same number of beads of each color, they are anagrams, even if the beads are arranged differently inside.
word1: c -> a -> t -> null word2: t -> a -> c -> null We want to check if both have the same letters and counts.
