Pergunta de entrevista da empresa Google

Trees and dynamic programming. It was leetcode medium