Perficient interview question

Write a function that determines if strings are anagrams.