Microsoft Interview Question

Sort words of a string in lexicographical order