Siemens interview question

Implement a sorting algorithm. Parse a text and return the word that appears the most often in the text.