Pergunta de entrevista da empresa Helm.ai

LeetCode question about 2D grid