Confluent interview question

First was a hashmap problem, second was wildcard matching.