Pregunta de entrevista de Whatnot

String Matching with tries solution