Print the maximum occurence of the amagrams and the amagram words itself among the input amagrams

In the given problem user inputs various anagram words the output should be the maximum frequency of that word and print those anagrams.
If you please help me print those amagrams from the input it will be really helpful.

can you share the problem link??

this problem i faced in hackerrank problem. I dont have the link.