Apollo.io Interview Question

Sort a stack according to alphabetical order