Assignment 04 DYNAMIC PROGRAMMING Solution