Sollicitatievraag bij Silverpush

One question on dynamic programming algorithm was asked.