ION Group interview question

DSA questions based on dynamic programming