Given a dictionary of words and a prefix, return every word that starts with that prefix.
Input:
- Line 1: space-separated dictionary words
- Line 2: the prefix
Output: matching words, one per line, sorted alphabetically. Print nothing if there are no matches.