Apollo.io interview question

Sort a stack according to alphabetical order