Question d’entretien chez Bloomberg

Question about tree implementation, and a dp problem