Flipkart interview question

Find matching word using Trie.