Pergunta de entrevista da empresa Whatnot

Coding: Write a function that parses user action logs. (Answer is easy once you understand the what is being logged. Solution uses Trie)