Domanda di colloquio di American Express

Sort a string alphabetically. Print a number pyramid pattern.