Giving array of words and user can input any letters. Write a function that returns all possible words that start with the input string. They are looking for optimum solution.
Interview questions [1]
Question 1
Giving array of words and user can input any letters. Write a function that returns all possible words that start with the input string. They are looking for optimum solution.