Tetcos interview question

Coding round: Sort words in lexicographical order. Interview: 1) Explain any sorting technique. 2) Puzzle question.