Flatiron Health Interview Question

Asked two medium-hard graph problems