Domanda di colloquio di Meta

One was a simple dynamic programming question, while the other was a tree question.