ANAGRAM - 2
Given a string with distinct characters,you are supposed to print all its anagrams in sorted order.
length of string <=8
Input contains many Strings,Read till End of File
For each input string print its anagrams in sorted order,one per line
Output of 2 consequtive cases must be seperated by a newline
Problem Setter : Jayant Mukherji