Pergunta de entrevista da empresa Amazon

I question had 2 rounds. First round had a simple string question and DFS. Second round, I was a geeksForGeeks question and something about trie.