Question d’entretien chez BNY

coding question based on dynamic programming