Domanda di colloquio di Google Cloud

Graph question with dynamic programming