Pregunta de entrevista de Cisco

Asked a question of bfs and dynamic programming combined