Pregunta de entrevista de Flatiron Health

Graph questions and DP problems.