Problem
Given a product list and a search word typed character by character, return up to 3 lexicographically smallest product suggestions for each prefix of the word.
Input / Output
products, a list of product names; word, the search string.word, a list of up to 3 suggestions.Constraints
Example