ZapLabs interview question

How do you check if two strings are anagrams?