Amazon Interview Question

Dynamic Programming and Graphs and Vertices