Pergunta de entrevista da empresa Flatiron Health

two map/set related question. Not difficult