Dynamic Programming(Multiple Pack)