Interview Question : Check if two strings are anagrams or not

Two strings are given. Check if they are anagrams or not.