Question d’entretien chez CME Group

How do you detect if two strings are anagrams?