Smarsh interview question

Check if the strings are Anagrams or not