TCS NQT Dynamic Programming and Greedy Algorithm Quiz-2