Pergunta de entrevista da empresa Goldman Sachs

Trie based question of finding all possible words