Question d’entretien chez American Express

Sort a string alphabetically. Print a number pyramid pattern.