Pregunta de entrevista de Scaler Academy

Coding Question based on Dynamic programming