Help needed in this problem
Problem:- https://www.hackerearth.com/practice/algorithms/dynamic-programming/introduction-to-dynamic-programming-1/practice-problems/algorithm/the-chocolate-boy-738c799b/
My sub:- https://pastebin.com/E1hqm56H
CodeChef Starters 131 Solution Discussion