Pergunta de entrevista da empresa Affirm

Write an algorithm to determine if two strings are an anagram of each other.