Pregunta de entrevista de Restroworks

Dynamic programming based real life problem (very tough)