Question d’entretien chez Coupang

Dynamic programming question, related to bacteria survival.