SRM615 Div2 - Level3

Dynamic Programming Problem.