Pregunta de entrevista de American Express

Sort a string alphabetically. Print a number pyramid pattern.