Count word frequencies in a string.
Asked in the technical 2 stage. Write a function that takes a string text and returns a mapping from each word to its frequency. Treat words as case-sensitive and separated by whitespace. Ignore empty input by returning an empty dictionary.
count_word_frequencies(text)
text: a stringdef count_word_frequencies(text):