Pregunta de entrevista de Citadel Securities

leetcode coding problem. 2D dynamic programming.