Pregunta de entrevista de AppBay Technologies

Asked me a dynamic programming question