Pergunta de entrevista da empresa Greenland Investment Management

A Leetcode medium problem (2D dynamic programming).