C problem solution:Anagrams

Anagram:

Output: