Infosys Interview Question

coding questions based on dynamic programming