Question d’entretien chez Shopee

Asked me to code a dynamic programming problem