Pregunta de entrevista de Pinduoduo

Previous projects. Dynamic programming algorithm questions.