week6 Longest Path in a DAG Problem