Refinery29 interview question

Detect an anagram.