Domanda di colloquio di Google

Trees and dynamic programming. It was leetcode medium