Print all permutations of a string in alphabetic order (https://www.codeeval.com/open_challenges/14/)