CME Group interview question

How do you detect if two strings are anagrams?