Pergunta de entrevista da empresa AppBay Technologies

Asked me a dynamic programming question