Expedia Group interview question

Q: Implement Trie DS