Q.) What is an anagram?
Two strings are said to be anagram if we can form one string by arranging the characters of another string.
example:- Rama and Raam both are anagrams of each other because if we rearrange the letter of string “Rama” then we get “Raam” and vice-versa.
now the question is how can we identify whether the two strings are anagram or not? if two string contains the same count of the alphabet then it will be an anagram.