Pregunta de entrevista de Squarepoint Capital

leetcode problem was about dynamic programming