Domanda di colloquio di Infosys

A question based on dynamic programming