Siemens Interview Question

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