Infrrd interview question

Python function to parse a string and count the occurrences of every word.