American Express interview question

Basic string manipulation problems ex: how to sort characters of a string in lexicographical order