Pergunta de entrevista da empresa Microsoft

Navigating through a matrix of 0s and 1s, Dynamic programming