Pregunta de entrevista de Wayground

For coding basic questions based on Stack and Trie data structure were put up. These are not put out directly, but as word problem, that needs to be derived to this.