Pergunta de entrevista da empresa Amazon

Coding Question : Graphs and Dynamic programming