Pergunta de entrevista da empresa PathAI

A difficult dynamic programming question