CiSRA interview question

How can you detect anagrams