Implement a Trie class:
insert(word) — add a word.search(word) — return true if the exact word exists.startsWith(prefix) — return true if any word starts with prefix.solve(ops) replays operations and returns results for search/startsWith.
Sample tests