Question d’entretien chez Mastercard

stock span problem, dynamic programming