Arrive Logistics interview question

Write a function that determines whether two strings are anagrams.