Pergunta de entrevista da empresa Paycom

How would you determine if two strings are anagrams?