Pregunta de entrevista de Amazon

Dynamic Programming and Graphs and Vertices