Frage im Vorstellungsgespräch bei American Express

Sort a string alphabetically. Print a number pyramid pattern.