A method that takes a word as the argument and then an array of valid substrings (dictionary). It returns a hash listing each substring (case insensitive) that was found in the original string and how many times it was found.
This was one of the excercises from https://theodinproject.com.