Cisco Interview Question

Asked a question of bfs and dynamic programming combined