I solved these two questions but had problem.
In COCOPROD I used recursion+memoization but One Test case didn’t passed
My Code : COCOPROD
In CHEFSTCK I reduced it to Trivial Job Scheduling Greedy Problem but Two Test cases didn’t passed
My Code : CHEFSTCK
*If Someone could either rectify my approach or check my code for a minute bug, It would be real helpful.