Pregunta de entrevista de Greenland Investment Management

A Leetcode medium problem (2D dynamic programming).