Irreducible Anagrams

Problem Name:
Irreducible Anagrams
Site:CodeForces
Links:
Tags:
Problem setters: