Question d’entretien chez Pocket Gems

dynamic programming, diamonds.