Pregunta de entrevista de Flatiron Health

two map/set related question. Not difficult