Write a program which prints all the permutations of a string in alphabetical order. We consider that digits < upper case letters < lower case letters. The sorting should be performed in ascending order.
Your program should accept a file as its first argument. The file contains input strings, one per line.
Print to stdout the permutations of the string separated by comma, in alphabetical order.