Infosys interview question

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