Pregunta de entrevista de Meta

Typical dynamic programming and list solving