NVIDIA interview question

Write a code for a Trie.