Pergunta de entrevista da empresa Google

A DSA question based on Dynamic Programming.