Question d’entretien chez Citadel Securities

leetcode coding problem. 2D dynamic programming.