Question d’entretien chez Addepar

Matrix dp question with traversal.