You are given an array of strings products and a string searchWord. Design a system that suggests at most three product names from products after each character of searchWord is typed. Suggested products should share a common prefix with the typed part of searchWord. If more than three products share that prefix, return the three lexicographically smallest. Return a list of lists of the suggested products after each character of searchWord is typed.
You are given an array of strings products and a string searchWord. Design a system that suggests at most three product names from products after each character of searchWord is typed. Suggested products should share a common prefix with the typed part of searchWord. If more than three products share that prefix, return the three lexicographically smallest. Return a list of lists of the suggested products after each character of searchWord is typed.