Domanda di colloquio di Pinduoduo

Previous projects. Dynamic programming algorithm questions.