In English, a derivative is formed by adding a suffix to a root: help is a root of helpful.
Given a dictionary of roots and a sentence of space-separated words, replace every word in the sentence with the shortest root that is a prefix of it. If no root applies, leave the word unchanged.
Return the resulting sentence.