Shortest unique prefix

Using Trie Tree