Build a simple autocomplete application based on a Trie data structure.
Fork this repository to implement your solution. The functionality you provide must adhere to the following interface:
add(word)=> adds word to the trie, returningtrueif the word was successfully added andfalseif the word was already present.contains(word)=> returnstrueif the trie contains word andfalseif it does not.search(prefix)=> returns the list of all words in the trie that begin with prefix.
You may use any language you wish for this task - use whatever you are most comfortable in.
When you are finished, submit a pull request containing your solution. Be sure that your solution contains instructions on how to execute the above commands.