Flatiron Health Interview Question

two map/set related question. Not difficult