Infosys Interview Question

two dsa ques :- chocolate problem and one more dp ques