Implement solve(text) that returns a dictionary mapping each unique word (lowercased) to the number of times it appears in the text.
.,!?;: at start/end of each word).Examples
solve("Hello hello HELLO") → {"hello": 3}solve("the cat sat on the mat") → {"the": 2, "cat": 1, "sat": 1, "on": 1, "mat": 1}solve("") → {}Sample tests