Pregunta de entrevista de Confluent

First was a hashmap problem, second was wildcard matching.